Patch Files
Use these files to quickly patch resources
alpine
Add a temporary container to a deployment
kubectl patch deployment/backend -p "$(curl https://k8sh8.com/patch/alpine)"
{
"spec": {
"template": {
"spec": {
"containers": [
{
"name": "tmp",
"image": "alpine",
"std-in": true,
"tty": true
}
]
}
}
}
}
busybox
Add a temporary container to a deployment
kubectl patch deployment/backend -p "$(curl https://k8sh8.com/patch/busybox)"
{
"spec": {
"template": {
"spec": {
"containers": [
{
"name": "tmp",
"image": "busybox",
"std-in": true,
"tty": true
}
]
}
}
}
}
renew
Force cert-manager certificate renewal
kubectl patch certificate/frontend-certificate --subresource status --type=merge -p "$(curl https://k8sh8.com/patch/renew)"
{
"status": {
"conditions": [
{
"type": "Issuing",
"status": "True"
}
]
}
}