I'm confused about why we use configMap versions. I'm seeing multiple versions of confimap in my k8s cluster that is attached to a deployment/sts. I was expecting if I apply some changes in my yaml it will get reflected in all of the configMap versions, but that is not happening. Can someone help with this.
I don't have any subdir
in configmap.
Do you know much time for reflecting these changes in the mounted volumes? or what I'm missing here
example configmap output
NAME DATA AGE
ca-bundles 4 3d17h
c-rules-alerts 1 3d17h
c-rules-alerts-v000 1 3d16h
c-rules-alerts-v001 1 50m
c-rules-metrics 1 3d17h
c-rules-metrics-v000 1 3d16h
c-rules-metrics-v001 1 50m
c-alertmanager 1 3d17h
c-alertmanager-v000 1 3d16h
c-server 3 3d17h
c-server-v000 3 3d16h
here is the mount config
volumeMounts:
- name: config-metric-volume
mountPath: /oracle_exporter
volumes:
- name: data-volume
emptyDir:
sizeLimit: 2Gi
- name: config-metric-volume
configMap:
name: chron-rules-metrics