Get YAML for deployed Kubernetes services?

前端 未结 12 1556
离开以前
离开以前 2020-12-22 23:28

I am trying to deploy my app to Kubernetes running in Google Container Engine.

The app can be found at: https://github.com/Industrial/docker-znc.

12条回答
  •  甜味超标
    2020-12-23 00:00

    1. You can get the yaml files of the resources using this command

      kubectl -n get -o yaml

    2. To get the secret into your pod,

    use something like this

    env
    - valueFrom
        secretKeyRef:
          name: secret_name
          key: key_name
    

    or

    envFrom
    - secretRef:
        name: secret_name
    
     
    

提交回复
热议问题