Horje
kubectl update field Code Example
kubectl update field
# Partially update a node using strategic merge patch
kubectl patch node k8s-node-1 -p '{"spec":{"unschedulable":true}}'

# Partially update a node identified by the type and name specified in "node.json" using strategic merge patch
kubectl patch -f node.json -p '{"spec":{"unschedulable":true}}'

# Update a container's image; spec.containers[*].name is required because it's a merge key
kubectl patch pod valid-pod -p '{"spec":{"containers":[{"name":"kubernetes-serve-hostname","image":"new image"}]}}'

# Update a container's image using a json patch with positional arrays
kubectl patch pod valid-pod -type='json' -p='[{"op": "replace", "path": "/spec/containers/0/image", "value":"new image"}]'




Shell

Related
set default user postgres Code Example set default user postgres Code Example
change default operating system grub Code Example change default operating system grub Code Example
gitlab with DNS name, if ssl certificate using at load balancer level please configure the gitlab with HTTP only Code Example gitlab with DNS name, if ssl certificate using at load balancer level please configure the gitlab with HTTP only Code Example
How to install Apache 2 in Ubuntu? Code Example How to install Apache 2 in Ubuntu? Code Example
windows temp dir Code Example windows temp dir Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8