kubectl --context=minikube -n default create -f dockerfile-configmap.yaml
kubectl --context=minikube -n default create -f job-builder-kaniko.yamlIf you want to create something in k8s without saving a file on a disk:
cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: ConfigMap
metadata:
name: dockerfile-configmap2
data:
Dockerfile: |
FROM hello-world
CMD ["echo", "Hello, World!"]
EOFIf you want to create a secret from json:
kubectl create secret generic kaniko-secret --from-file=<path to kaniko-secret.json>- kubectl
- minikube
- kaniko https://github.com/GoogleContainerTools/kaniko