Get YAML for deployed Kubernetes services?

前端 未结 12 1476
离开以前
离开以前 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-22 23:59

    • Like mentioned above "--export" is one option to get the manifest corresponding to the kubeernetes objects
    • But "--export" is considered to be buggy and there is a proposal to deprecate it
    • Currently the better option is to do "-o yaml" or "-o json" and remove the unnecessary fields
    • The main difference is "--export" is expected to remove the cluster specific settings (e.g. cluster service IP of a k8s service). But it is found to be inconsistent in this regard

提交回复
热议问题