Kulernet Yaml Templates

Where can I find the official template that describes how to create your file .yamlfor installing services / modules in Kubernetes?

+4
source share
1 answer

You can find the specification for pod here http://kubernetes.io/docs/api-reference/v1/definitions/#_v1_pod

A good starting point are also examples https://github.com/kubernetes/kubernetes/tree/master/examples

Additionally you can create a ressource via kubectl and export the resource to yaml

eg. for the pod, you can run this command:

kubectl run nginx --image=nginx kubectl get pods ngnix -o yaml > pod.yaml

+4
source

Source: https://habr.com/ru/post/1657584/


All Articles