Kubernetes Configmap and “cannot convert int64 to string” error
1 min readMar 19, 2019
If you try to create a configmap with kubectl
$ kubectl apply -f myconfigmaplist.yaml
...Object: &{map["kind":"ConfigMap" "apiVersion":"v1" "metadata":map
...
for: "myconfigmaplist.yaml": cannot convert int64 to string
This problem is related to integer values without double quotation like the following.
POSTGRES_PORT: 5432
Solution is simple! The value needs to be quoted
POSTGRES_PORT: “5432”
Ismail YENIGUL