{"id":8889,"date":"2025-05-19T02:55:00","date_gmt":"2025-05-19T02:55:00","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=8889"},"modified":"2025-05-19T10:07:37","modified_gmt":"2025-05-19T10:07:37","slug":"how-to-upgrade-nginx-controller-in-azure-kubernetes-service-aks-cluster","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/how-to-upgrade-nginx-controller-in-azure-kubernetes-service-aks-cluster","title":{"rendered":"How to upgrade nginx controller in Azure Kubernetes Service (AKS) cluster"},"content":{"rendered":"\n<p>Based on the information provided in the support ticket, adding the annotations\u00a0<code>service.beta.kubernetes.io\/azure-load-balancer-ipv4: 'xxxx'<\/code>\u00a0and\u00a0<code>service.beta.kubernetes.io\/azure-load-balancer-health-probe-request-path: '\/healthz'<\/code>\u00a0should help in maintaining a static IP address for your Kubernetes Ingress Controller. <\/p>\n\n\n\n<p>Backup existing YAML<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">kubectl get deployment ingress-nginx-controller -n ingress-nginx -o yaml<\/code><\/pre>\n\n\n\n<p>Change existing YAML<\/p>\n\n\n\n<p>Get new ingres version with sha<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/kubernetes\/ingress-nginx\/releases\">https:\/\/github.com\/kubernetes\/ingress-nginx\/releases<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">  labels:\n    app.kubernetes.io\/component: controller\n    app.kubernetes.io\/instance: ingress-nginx\n    app.kubernetes.io\/name: ingress-nginx\n    app.kubernetes.io\/part-of: ingress-nginx\n    app.kubernetes.io\/version: 1.12.2 -&gt; Change\n\n  template:\n    metadata:\n      creationTimestamp: null\n      labels:\n        app.kubernetes.io\/component: controller\n        app.kubernetes.io\/instance: ingress-nginx\n        app.kubernetes.io\/name: ingress-nginx\n        app.kubernetes.io\/part-of: ingress-nginx\n        app.kubernetes.io\/version: 1.12.2  -&gt; Change\n\n  image: registry.k8s.io\/ingress-nginx\/controller:v1.12.2@sha256:03497ee984628e95eca9b2279e3f3a3c1685dd48635479e627d219f00c8eefa9  -&gt; Change\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">kubectl apply -f nginx-deployment.yaml<\/code><\/pre>\n\n\n\n<p>Check Upgrade<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">kubectl get pods -n ingress-nginx\nkubectl describe deployment ingress-nginx-controller -n ingress-nginx<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Based on the information provided in the support ticket, adding the annotations\u00a0service.beta.kubernetes.io\/azure-load-balancer-ipv4: &#8216;xxxx&#8217;\u00a0and\u00a0service.beta.kubernetes.io\/azure-load-balancer-health-probe-request-path: &#8216;\/healthz&#8217;\u00a0should help in maintaining a static IP address for your Kubernetes Ingress Controller. Backup [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8889","post","type-post","status-publish","format-standard","hentry","category-research"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/8889","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=8889"}],"version-history":[{"count":2,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/8889\/revisions"}],"predecessor-version":[{"id":8892,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/8889\/revisions\/8892"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=8889"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=8889"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=8889"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}