JSON and YAML formats are accepted. If replacing an existing resource, the
complete resource spec must be provided. This can be obtained by
$ kubectl get TYPE NAME -o yaml
Please refer to the models in https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/blob/HEAD/docs/api-reference/v1/definitions.html to find if a field is mutable.
options:
- name:cascade
default_value:"false"
usage:|
Only relevant during a force replace. If true, cascade the deletion of the resources managed by this resource (e.g. Pods created by a ReplicationController).
- name:filename
shorthand:f
default_value:'[]'
usage:|
Filename, directory, or URL to file to use to replace the resource.
- name:force
default_value:"false"
usage:Delete and re-create the specified resource
- name:grace-period
default_value:"-1"
usage:|
Only relevant during a force replace. Period of time in seconds given to the old resource to terminate gracefully. Ignored if negative.
If true, the configuration of current object will be saved in its annotation. This is useful when you want to perform kubectl apply on this object in the future.
- name:schema-cache-dir
default_value:~/.kube/schema
usage:|
If non-empty, load/store cached API schemas in this directory, default is '$HOME/.kube/schema'
- name:timeout
default_value:"0"
usage:|
Only relevant during a force replace. The length of time to wait before giving up on a delete of the old resource, zero means determine a timeout from the size of the object
- name:validate
default_value:"true"
usage:|
If true, use a schema to validate the input before sending it
inherited_options:
- name:alsologtostderr
default_value:"false"
usage:log to standard error as well as files
- name:api-version
usage:|
DEPRECATED:The API version to use when talking to the server