This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kind: Ingress | |
| apiVersion: networking.k8s.io/v1 | |
| metadata: | |
| name: cert-manager-example-ingress-01 | |
| annotations: | |
| cert-manager.io/cluster-issuer: letsencrypt-prod-01 | |
| spec: | |
| ingressClassName: ingress-nginx | |
| rules: | |
| - host: myingress.<YOUR_DOMAIN> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kind: Service | |
| apiVersion: v1 | |
| metadata: | |
| name: cert-manager-example-01-svc | |
| spec: | |
| selector: | |
| app: cert-manager-example-01 | |
| type: ClusterIP | |
| ports: | |
| - name: http |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: cert-manager-example-01 | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: | |
| app: cert-manager-example-01 | |
| template: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: cert-manager.io/v1 | |
| kind: ClusterIssuer | |
| metadata: | |
| name: letsencrypt-prod-01 | |
| spec: | |
| acme: | |
| # You must replace this email address with your own. | |
| # Let's Encrypt will use this to contact you about expiring | |
| # certificates, and issues related to your account. | |
| email: <EMAIL_ADDRESS> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: cert-manager.io/v1 | |
| kind: ClusterIssuer | |
| metadata: | |
| name: letsencrypt-staging-01 | |
| spec: | |
| acme: | |
| # You must replace this email address with your own. | |
| # Let's Encrypt will use this to contact you about expiring | |
| # certificates, and issues related to your account. | |
| email: <EMAIL_ADDRESS> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| resource "helm_release" "cert_manager" { | |
| name = local.cert_manager_name | |
| repository = "https://charts.jetstack.io" | |
| chart = "cert-manager" | |
| version = "v1.13.3" | |
| namespace = "cert-manager" | |
| create_namespace = true | |
| set { | |
| name = "installCRDs" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| resource "helm_release" "ingress_nginx" { | |
| name = local.nginx_ingress_name | |
| repository = "https://kubernetes.github.io/ingress-nginx" | |
| chart = "ingress-nginx" | |
| namespace = "ingress" | |
| create_namespace = true | |
| values = [ | |
| file("./ingress/values.yml") | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| replicaCount: 1 | |
| extraArgs: | |
| ingress-class: ingress-nginx | |
| publishService: | |
| enabled: true | |
| service: | |
| annotations: | |
| service.beta.kubernetes.io/azure-load-balancer-health-probe-request-path: /healthz | |
| service.beta.kubernetes.io/azure-load-balancer-resource-group: rg-aks-terraform-prod # The resource group where the public IP is located | |
| ingressClassResource: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| resource "azurerm_dns_zone" "ingress" { | |
| name = local.dns_name | |
| resource_group_name = azurerm_resource_group.rg_prod.name | |
| } | |
| resource "azurerm_dns_a_record" "ingress" { | |
| name = "myingress" | |
| zone_name = azurerm_dns_zone.ingress.name | |
| resource_group_name = azurerm_resource_group.rg_prod.name | |
| ttl = 3600 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data "azurerm_kubernetes_cluster" "main_aks" { | |
| name = local.aks_name | |
| resource_group_name = local.rg_name | |
| depends_on = [ | |
| azurerm_kubernetes_cluster.main_aks | |
| ] | |
| } |
NewerOlder