Prerequisites
- Install Kubenetes command line tool - kubectl. Instructions can be found here: https://kubernetes.io/docs/tasks/tools/install-kubectl/
- Install the command line tool of the Kubernetes hosting system:
...
powershell -f upgrade.ps1 -n <OneList_Namespace> -v <Image_Version>
For example: powershell -f "c:\onelist\upgrade.ps1" -n onelist -v 6.5.1
Update the SSL certificate
The SSL certificate is securely stored in the Kubernetes secrets store. It is important to keep the SSL certificate current for OneList to function. Please renew the certificate before its expiry date.
- Obtain the SSL certificate and private key without password;
- If the deployed SSL certificate is a wildcard certificate, the TLS secrete name is tls.onelist. Otherwise, the TLS secrete name is tls.onelist.<ONELIST_NAMESPACE>;
- Run these two command below:
kubectl delete secret tls <tls secret name> --namespace ingress-nginx
kubectl create secret tls <tls secret name> --namespace ingress-nginx --cert <Ssl_Certificate_File> --key <Private_Key_File>
For example:
kubectl delete secret tls tls.onelist --namespace ingress-nginx
kubectl create secrte tls tls.onelist --namespace ingress-nginx --cert "c:\onelist\ssl_certificte.crt" --key "c:\onelist\ssl_key.key"
...
https://docs.microsoft.com/en-us/azure/aks/update-credentials
- az aks show --resource-group <Azure_Resource_Group> --name <Azure_Kubernetes_Cluster> --query servicePrincipalProfile.clientId -o tsv
- Record the principal ID returned from the above command
- azadsp credential reset --name<The Service Principal ID> --query password -o tsv
- Record the new password returned from the above command
- az aks update-credentials --resource-group <Azure_Resource_Group> --name <Azure_Kubernetes_Cluster> --reset-service-principal --service-principal <The Service Principal ID> --client-secret <The Service Principal Password>
- Wait for a few moments as the above command takes time to complete