metadata:
annotations:
deployment.kubernetes.io/revision: “2”
creationTimestamp: “2023-05-19T13:31:05Z”
generation: 2
name: frontend
namespace: default
resourceVersion: “1162”
uid: ce288240-21e6-4294-aae7-2ada2b45226c
spec:
minReadySeconds: 20
progressDeadlineSeconds: 600
replicas: 4
revisionHistoryLimit: 10
selector:
matchLabels:
name: webapp
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: Recreate
Can anyone help me out to resolve the below exception:
controlplane ~ kubectl edit deployment frontend
error: deployments.apps “frontend” is invalid
A copy of your changes has been stored to “/tmp/kubectl-edit-1749438177.yaml”
error: Edit cancelled, no valid changes were saved.