Skip to main content
Notice removed Draw attention by CommunityBot
Bounty Ended with no winning answer by CommunityBot
Notice added Draw attention by Mohamed Ahmed
Bounty Started worth 50 reputation by Mohamed Ahmed
edited tags
Link
Jason St-Cyr
  • 6.8k
  • 1
  • 19
  • 46
Source Link

Hard time installing Sitecore 10 external resources in Kubernetes AKS in Azure

  • I'm trying to install Sitecore 10 on AKS so I was following the steps in Installation_Guide_for_Production_Deployments_with_Kubernetes_XP10.0.0.pdf

    • Installed azureCli & helm on my local pc
    • az login
    • az account set --subscription "MySubscription"
    • az aks create --resource-group MyResourceGroup --name sc10aks --node-count 1 --enable-addons monitoring --generate-ssh-keys
    • az aks install-cli
    • az aks get-credentials --resource-group MyResourceGroup --name sc10aks
    • kubectl get nodes (Working fine)
    • I managed to create all this files based on the documentation
      • \k8s\ltsc2019\xp1\secrets\sitecore-license.txt
      • \k8s\ltsc2019\xp1\secrets\sitecore-identitycertificate.txt
      • \k8s\ltsc2019\xp1\secrets\tls\global-cm\tls.crt
      • k8s\ltsc2019\xp1\secrets\tls\global-cd\tls.crt
      • k8s\ltsc2019\xp1\secrets\tls\global-id\tls.crt
      • Paste TheCertPassword in sitecore-identitycertificatepassword.txt
    • Put a random generated string on sitecore-telerikencryptionkey.txt, sitecore-identitysecret.txt, sitecorereportingapikey.txt
    • Filled up those with random generated strings as well, this will be the passwords
      • sitecore-adminpassword.txt, sitecore-databasepassword, sitecore-collection-shardmapmanager-database-password, sitecore-core-database-password.txt, sitecore-exm-master-database-password, sitecore-forms-database-password, sitecore-marketing-automation-database-password, sitecore-master-database-password, sitecore-messaging-database-password, sitecore-processing-engine-tasks-database-password, sitecore-processing-tasks-database-password, sitecore-reference-data-database-password, sitecore-reporting-database-password, sitecore-web-database-password
      • helm repo add stable https://kubernetes-charts.storage.googleapis.com/
      • helm install nginx-ingress stable/nginx-ingress --set controller.replicaCount=1 --set controller.nodeSelector."beta\.kubernetes\.io/os"=linux --set defaultBackend.nodeSelector."beta\.kubernetes\.io/os"=linux --set-string controller.config.proxy-body-size=10m --set controller.service.externalTrafficPolicy=Local
      • kubectl apply -k ./secrets/
        • This commands succeeds and print: secret/global-cd-tls created secret/global-cm-tls created secret/global-id-tls created secret/sitecore-admin created secret/sitecore-database created secret/sitecore-identitycertificate created secret/sitecore-identity created secret/sitecore-license created secret/sitecore-reporting created secret/sitecore-solr-xdb created secret/sitecore-solr created secret/sitecore-telerik created
      • kubectl apply -f ./external/
        • This commands succeeds and print: service/mssql created deployment.apps/mssql created service/redis created deployment.apps/redis created service/solr created deployment.apps/solr created
        • My problem is here, it succeeds but I never see it green in azure, there is always this warning sign.
        • Running kubectl get pods -o wide mssql, redis, solr status is always pending azure AKS
        • Because of the previous kubectl apply -f ./init/
  • Running kubectl describe pod is giving me this result: Normal Successfully assigned default/mssql-init-zd49r to aks-nodepool1-34023802-vmss000000 Normal Pulling image "scr.sitecore.com/sxp/sitecore-xp1-mssql-init:10.0.0-ltsc2019" Warning Failed to pull image "scr.sitecore.com/sxp/sitecore-xp1-mssql-init:10.0.0-ltsc2019": rpc error: code = Unknown desc = Error response from daemon: Get https://scr.sitecore.com/v2/: x509: certificate signed by unknown authority Warning Error: ErrImagePull Normal Back-off pulling image "scr.sitecore.com/sxp/sitecore-xp1-mssql-init:10.0.0-ltsc2019" Warning Error: ImagePullBackOff

  • In the logs I can see those errors:

    • Error creating: pods "tunnelfront-67d969bc5f-" is forbidden: error looking up service account kube-system/tunnelfront: serviceaccount "tunnelfront" not found
    • Error creating: pods "coredns-autoscaler-868b684fd4-" is forbidden: error looking up service account kube-system/coredns-autoscaler: serviceaccount "coredns-autoscaler" not found
  • I also tried to have ACR attached to the k8s service but this didn't help either $MYACR="myContainerRegistry" az acr create -n $MYACR -g my_rg_AKS --sku basic az aks create -n sc10aks -g my_rg_AKS --generate-ssh-keys --attach-acr $MYACR

  • I was wondering when if it's going to be used sitecore-database-elastic-pool-name.txt , so I tried one time when it was empty and I tried to install while it contains ElasticPool in the file, but it didn't help, the mssql, redis, solr status is always pending

Sorry for the long question, but you can reproduce the issue just from this steps.