I was trying to install SSL on Rasa X on GKE with Rasa 2.0. (I used the 2.0.0a1 tag for Rasa core; not sure whether that is the correct one!).
I’m using the instructions from the master class here The Rasa Masterclass Handbook: Episode 12 and the blog here: The Complete Guide To Deploying Your Rasa Assistant
Got the base install working fine without SSL.
However, when I try to upgrade the helm chart installation after following the instructions for SSL, my helm upgrade fails with the following error:
Error: UPGRADE FAILED: YAML parse error on rasa-x/templates/ingress.yaml: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal array into Go struct field .metadata.annotations of type string
I looked at ingress.yaml on Github here:
but could not quite figure out the error.values.yml looked fine on a YML validator.
My relevant values.yml snippet (identifying info replaced with generic info):
ingress settings
ingress:
annotations:
ingress.annotations.certmanager.k8s.io/cluster-issuer: letsencrypt-prod
kubernetes.io/ingress.class: traefik
# hosts for this ingress
hosts:
- host: mysubdomain.mydomain.com
paths:
- /
# tls: Secrets for the certificates
tls:
- secretName: my-secret-here
hosts:
- mysubdomain.mydomain.com
#create a file called letsencrypt-issuer-production.yml with the below:
apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
spec:
acme:
The ACME server URL
server: https://acme-v02.api.letsencrypt.org/directory
# Email address used for ACME registration
email: myemail@mydomain.com
# Name of a secret used to store the ACME account private key
privateKeySecretRef:
name: letsencrypt-prod
# Enable the HTTP-01 challenge provider
solvers:
- http01:
ingress:
class: traefik
kubectl apply -f letsencrypt-issuer-production.yml
create a file cert-request.yml
apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
name: letsencrypt-prod
namespace: mynamespace
spec:
secretName: my-secret-here
issuerRef:
name: letsencrypt-prod
kind: ClusterIssuer
commonName: mysubdomain.mydomain.com
dnsNames:
kubectl apply -f cert-request.yml
And finally helm upgrade failed with the error above. Any help would be greatly appreciated!