Kubernetes – How to define ConfigMap built using a file in a yaml?

Your config.json file should be inside your mychart/ directory, not inside mychart/templates Chart Template Guide configmap.yaml apiVersion: v1 kind: ConfigMap metadata: name: {{ .Release.Name }}-configmap data: config.json: |- {{ .Files.Get “config.json” | indent 4}} config.json { “val”: “key” } helm install –dry-run –debug mychart [debug] Created tunnel using local port: ‘52091’ [debug] SERVER: “127.0.0.1:52091” … …

Read more

An image does not exist locally with the tag: while pushing image to local registry

You need to tag and push the image. When tagging an image, you can use the image identifier (imageId). It is listed when showing the list of all images with docker images. Syntax and an example (using imageId) for creating a tag are: docker tag <imageId or imageName> <hostname>:<repository-port>/<image>:<tag> docker tag af340544ed62 example.com:18444/hello-world:mytag Once the …

Read more