Skip to content

Commit

Permalink
Use vendored nginx-ingress chart and mcr image (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcfarland authored Jun 7, 2024
1 parent ffbbb3f commit 68f7822
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions deployment/bin/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -283,18 +283,22 @@ if [ "${BASH_SOURCE[0]}" = "${0}" ]; then
echo "== nginx-ingress =="
echo "==================="

helm upgrade --install nginx-ingress ingress-nginx/ingress-nginx \
helm upgrade --install nginx-ingress helm/ingress-nginx-4.8.3.tgz \
-n pc \
--create-namespace \
--set controller.replicaCount=1 \
--set controller.service.externalTrafficPolicy="Local" \
--set controller.service.loadBalancerIP="${INTERNAL_INGRESS_IP}" \
--set controller.service.annotations."service\.beta\.kubernetes\.io/azure-load-balancer-internal"=true \
--set controller.image.registry="mcr.microsoft.com" \
--set controller.image.image="oss/kubernetes/ingress/nginx-ingress-controller" \
--set controller.image.tag="v1.9.6-patched" \
--set controller.image.digest="sha256:2383717ea3edd1652b97e5b82adf15a3e7f091d0d5d0eceb8dce4410e3a6a292" \
--version "4.8.3"\
--wait \
--timeout 2m0s \
-f bin/nginx-values.yaml


######################
# Gather environment #
######################
Expand Down
Binary file added deployment/helm/ingress-nginx-4.8.3.tgz
Binary file not shown.
3 changes: 2 additions & 1 deletion deployment/terraform/resources/aks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ resource "azurerm_kubernetes_cluster" "pctasks" {
# https://learn.microsoft.com/en-us/azure/aks/auto-upgrade-node-os-image
node_os_channel_upgrade = "NodeImage"

image_cleaner_enabled = true
image_cleaner_enabled = true
image_cleaner_interval_hours = 24

default_node_pool {
name = "agentpool"
Expand Down

0 comments on commit 68f7822

Please sign in to comment.