Difference between revisions of "Kubectl create --save-config"

From wikieduonline
Jump to navigation Jump to search
(Created page with "{{lc}} {{is missing}} {{kubectl create}}")
 
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
  
 +
--save-config=false:
 +
If true, the configuration of current object will be saved in its
 +
annotation. Otherwise, the [[annotation]] will be unchanged. This flag is
 +
useful when you want to perform kubectl apply on this object in the
 +
future.
  
  
 
+
* {{is missing}}
{{is missing}}
+
* {{kubectl create}}
 
 
 
 
{{kubectl create}}
 

Revision as of 12:16, 9 August 2023

--save-config=false:
	If true, the configuration of current object will be saved in its
	annotation. Otherwise, the annotation will be unchanged. This flag is
	useful when you want to perform kubectl apply on this object in the
	future.


Error from server (Conflict): error when applying patch:
.../...
to:
Resource: "/v1, Resource=configmaps", GroupVersionKind: "/v1, Kind=ConfigMap"
Name: "kube-root-ca.crt", Namespace: "your-namespace"
for: "your.yaml": Operation cannot be fulfilled on configmaps "kube-root-ca.crt": the object has been modified; please apply your changes to the latest version and try again

Advertising: