Difference between revisions of "CreationTimestamp"

From wikieduonline
Jump to navigation Jump to search
Line 7: Line 7:
  
 
  [[kubectl patch]] --type=json -p='[{"op": "remove", "path": "metadata.creationTimestamp"}]'
 
  [[kubectl patch]] --type=json -p='[{"op": "remove", "path": "metadata.creationTimestamp"}]'
 +
 +
kubectl patch --local -f ./namespace.yaml --type=json -p='[{"op": "remove", "path": "/metadata/creationTimestamp"}]' -o yaml > ./namespace.yaml
 +
  
  

Revision as of 15:26, 9 August 2023

Advertising: