Mankasss
Mankasss

Reputation: 20

kind like templates or something like it for openshift and kuberneties in one moment

I need to do configs for Openshift and Kubernetes in one repo. I use Templates in Openshift, but Kubernetes can't understand what a Template is. What can I use that will work in both OpenShift and vanilla Kubernetes?

Upvotes: 0

Views: 461

Answers (1)

Simon
Simon

Reputation: 4485

As you noted, Templates is an OpenShift-specific resource. I would not recommend using it but instead use something like Kustomize to do templating for both OpenShift and also for Kubernetes.

Since Kubernetes 1.14, there is the kubectl kustomize command built in, so you do not even need to install another tool for it.

Here is a basic tutorial for Kustomize in the Kubernetes documentation: https://kubernetes.io/docs/tasks/manage-kubernetes-objects/kustomization/

Upvotes: 1

Related Questions