Oskar Gunther
Oskar Gunther

Reputation: 59

Does Kubernetes ConfigMap is only for Pods and Deployments?

It's a simple question - is there a way to use ConfigMap key-values in, let's say - Ingress?

I want to have the configuration of such things in one place, to make it easier to clone the whole cluster.

Is it possible?

Upvotes: 0

Views: 134

Answers (1)

Arghya Sadhu
Arghya Sadhu

Reputation: 44657

ConfigMap is for usage in a pod to supply configuration at runtime. The recommendation is any deployment yaml including ingress and configMaps should be stored in a version control system. That way you can apply to a new cluster whenever needed. You can go one step further and adopt what is called GitOps.

Upvotes: 2

Related Questions