I have a problem that I don't understand.
When I edit my wordpress deployment ( kubectl edit deployment wordpress ) and try to add my livenessProbe or readinessProbe .
I got the message below and I don't understand why
Edit cancelled, no changes made.
if I rerun ( kubectl edit deployment wordpress ) no modification has been saved :(
template:
metadata:
creationTimestamp: null
labels:
app: wordpress
tier: frontend
spec:
containers:
- env:
- name: WORDPRESS_DB_HOST
value: wordpress-mysql
- name: WORDPRESS_DB_PASSWORD
valueFrom:
secretKeyRef:
key: password.txt
name: mysql-pass-h4hhdb94mg
image: wordpress:latest
imagePullPolicy: Always
readinessProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: 8080
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1