Get YAML for deployed Kubernetes services?

前端 未结 12 1596
离开以前
离开以前 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:02

    Use this command to get yaml format of your service

    kubectl get service servicename -n -o yaml

    You can put it in some file also

    kubectl get service servicename -n -o yaml > service.yaml

提交回复
热议问题