Error with cluster Restore #3273
-
Hi All, Cluster: error restoring mutatingwebhookconfigurations.admissionregistration.k8s.io/aks-webhook-admission-controller: MutatingWebhookConfiguration.admissionregistration.k8s.io "aks-webhook-admission-controller" is invalid: webhooks[0].sideEffects: Unsupported value: "Unknown": supported values: "None", "NoneOnDryRun" While restoring an AKS cluster I get the following error Will Velero restore not work if the SideEffects Key is set to "UnKnown" ? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
@Abhiger Velero doesn't modify the webhook properties that get backed up. This is due to AKS having support only for 2 values on its webhook side effect field, as shown in the error message. Were you migrating between versions of AKS? That may have introduced this new constraint. |
Beta Was this translation helpful? Give feedback.
-
I have this same error and haven't migrated version. @nrb wnat info do you need to help resolve this? |
Beta Was this translation helpful? Give feedback.
-
I have the same issue. Environment
Log{"level":"info","logSource":"pkg/restore/restore.go:1170","msg":"error restoring pod-identity-webhook: MutatingWebhookConfiguration.admissionregistration.k8s.io \"pod-identity-webhook\" is invalid: webhooks[0].sideEffects: Unsupported value: \"Unknown\": supported values: \"None\", \"NoneOnDryRun\"","restore":"velero/velero-backup-20201224075249-20201224173831","time":"2020-12-24T08:39:14Z"} Describe -> ErrorsErrors:
Velero: <none>
Cluster: error restoring mutatingwebhookconfigurations.admissionregistration.k8s.io/pod-identity-webhook: MutatingWebhookConfiguration.admissionregistration.k8s.io "pod-identity-webhook" is invalid: webhooks[0].sideEffects: Unsupported value: "Unknown": supported values: "None", "NoneOnDryRun"
Namespaces: <none> Work aroundThe work around I did is the below.
|
Beta Was this translation helpful? Give feedback.
-
This is clearly a bad workaround to omit the objects that cause trouble when restoring. What about migration to the other cluster? Will those mutatingwebhookconfigurations be missing? |
Beta Was this translation helpful? Give feedback.
-
FYI: There is also an open issue regarding this. |
Beta Was this translation helpful? Give feedback.
I have the same issue.
My environment is the following.
Environment
Log
Describe -> Errors