Kubernetes Configmap and “cannot convert int64 to string” error

ismail yenigül
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

--

--

ismail yenigül
ismail yenigül

Written by ismail yenigül

CKA/CKAD,AWS certified Freelancer DevOps Engineer

Responses (2)