How can I edit a Deployment without modify the file manually?

前端 未结 4 743
情话喂你
情话喂你 2020-12-01 04:18

I have defined a Deployment for my app:

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: myapp-deployment
spec:
  replicas: 2
  template:
           


        
4条回答
  •  心在旅途
    2020-12-01 04:50

    (I would have posted this as a comment if I had enough reputation)

    Yes, as per http://kubernetes.io/docs/user-guide/kubectl/kubectl_patch/ both JSON and YAML formats are accepted.

    But I see that all the examples there are using JSON format. Filed https://github.com/kubernetes/kubernetes.github.io/issues/458 to add a YAML format example.

提交回复
热议问题