Hello,
i am trying to configure a k8s cluster with ansible. It is working quite well but new i have a problem with a custom resource (cert-manager Certificate and ClusterIssuer) When i rerun the scripts it gives me an error: "strategic merge patch format is not supported".
If i run kubectl apply it works without problem (certificate "mycert" configured).
The role looks like this:
- name: Create cluster issuer
k8s:
state: present
kubeconfig: "{{kubeconfig_path}}"
definition:
kind: ClusterIssuer
metadata:
name: letsencrypt-staging
spec:
acme:
privateKeySecretRef:
name: letsencrypt-staging
http01: {}
Can someone help me what if this is a bug in ansible or it is a bug in k8s or just my mistake?
Thanks!
Attila