diff --git a/06-Azure-MySQL-for-AKS-Storage/kube-manifests/01-MySQL-externalName-Service.yml b/06-Azure-MySQL-for-AKS-Storage/kube-manifests/01-MySQL-externalName-Service.yml index 245dac73..9322c997 100644 --- a/06-Azure-MySQL-for-AKS-Storage/kube-manifests/01-MySQL-externalName-Service.yml +++ b/06-Azure-MySQL-for-AKS-Storage/kube-manifests/01-MySQL-externalName-Service.yml @@ -4,4 +4,4 @@ metadata: name: mysql spec: type: ExternalName - externalName: akswebappdb.mysql.database.azure.com \ No newline at end of file + externalName: akswebappdb34.mysql.database.azure.com \ No newline at end of file diff --git a/06-Azure-MySQL-for-AKS-Storage/kube-manifests/02-UserMgmtWebApp-Deployment.yml b/06-Azure-MySQL-for-AKS-Storage/kube-manifests/02-UserMgmtWebApp-Deployment.yml index 88b911fe..a7ca04a6 100644 --- a/06-Azure-MySQL-for-AKS-Storage/kube-manifests/02-UserMgmtWebApp-Deployment.yml +++ b/06-Azure-MySQL-for-AKS-Storage/kube-manifests/02-UserMgmtWebApp-Deployment.yml @@ -32,6 +32,6 @@ spec: - name: DB_NAME value: "webappdb" - name: DB_USERNAME - value: "dbadmin@akswebappdb" + value: "dbadmin@akswebappdb34" - name: DB_PASSWORD value: "Redhat1449" diff --git a/09-Ingress-Basic/README.md b/09-Ingress-Basic/README.md index 33732f59..e29fe9d3 100644 --- a/09-Ingress-Basic/README.md +++ b/09-Ingress-Basic/README.md @@ -17,10 +17,10 @@ ## Step-02: Create Static Public IP ```t # Get the resource group name of the AKS cluster -az aks show --resource-group aks-rg1 --name aksdemo1 --query nodeResourceGroup -o tsv +az aks show --resource-group Workshop-Temp --name aksdemo1 --query nodeResourceGroup -o tsv # TEMPLATE - Create a public IP address with the static allocation -az network public-ip create --resource-group <REPLACE-OUTPUT-RG-FROM-PREVIOUS-COMMAND> --name myAKSPublicIPForIngress --sku Standard --allocation-method static --query publicIp.ipAddress -o tsv +az network public-ip create --resource-group MC_Workshop-Temp_aksdemo1_centralus --name myAKSPublicIPForIngress --sku Standard --allocation-method static --query publicIp.ipAddress -o tsv # REPLACE - Create Public IP: Replace Resource Group value az network public-ip create --resource-group MC_aks-rg1_aksdemo1_centralus --name myAKSPublicIPForIngress --sku Standard --allocation-method static --query publicIp.ipAddress -o tsv @@ -53,7 +53,7 @@ helm install ingress-nginx ingress-nginx/ingress-nginx \ --set controller.nodeSelector."kubernetes\.io/os"=linux \ --set defaultBackend.nodeSelector."kubernetes\.io/os"=linux \ --set controller.service.externalTrafficPolicy=Local \ - --set controller.service.loadBalancerIP="REPLACE_STATIC_IP" + --set controller.service.loadBalancerIP=23.99.200.119 # Replace Static IP captured in Step-02 (without beta for NodeSelectors) helm install ingress-nginx ingress-nginx/ingress-nginx \ @@ -74,7 +74,7 @@ kubectl get all -n ingress-basic # Access Public IP -http://<Public-IP-created-for-Ingress> +http://23.99.200.119 # Output should be 404 Not Found from Nginx diff --git a/12-ExternalDNS-for-AzureDNS-on-AKS/kube-manifests/01-ExternalDNS/azure.json b/12-ExternalDNS-for-AzureDNS-on-AKS/kube-manifests/01-ExternalDNS/azure.json index f5e5ebd7..67655ccd 100644 --- a/12-ExternalDNS-for-AzureDNS-on-AKS/kube-manifests/01-ExternalDNS/azure.json +++ b/12-ExternalDNS-for-AzureDNS-on-AKS/kube-manifests/01-ExternalDNS/azure.json @@ -1,7 +1,7 @@ { - "tenantId": "c81f465b-99f9-42d3-a169-8082d61c677a", - "subscriptionId": "82808767-144c-4c66-a320-b30791668b0a", - "resourceGroup": "dns-zones", + "tenantId": "acae0749-0588-4c42-a49b-26bfbab61995", + "subscriptionId": "a877426b-5ad5-4d21-98d9-fb390bfd3f34", + "resourceGroup": "Workshop-Temp", "useManagedIdentityExtension": true, - "userAssignedIdentityID": "5b6a4c59-9917-460e-8baa-c3f54377e3f8" + "userAssignedIdentityID": "ee930295-6ae0-43c9-917c-8f1f16e3d137" } diff --git a/12-ExternalDNS-for-AzureDNS-on-AKS/kube-manifests/02-NginxApp1/03-Ingress-with-ExternalDNS.yml b/12-ExternalDNS-for-AzureDNS-on-AKS/kube-manifests/02-NginxApp1/03-Ingress-with-ExternalDNS.yml index 3ded0d36..ccc95468 100644 --- a/12-ExternalDNS-for-AzureDNS-on-AKS/kube-manifests/02-NginxApp1/03-Ingress-with-ExternalDNS.yml +++ b/12-ExternalDNS-for-AzureDNS-on-AKS/kube-manifests/02-NginxApp1/03-Ingress-with-ExternalDNS.yml @@ -6,7 +6,7 @@ metadata: kubernetes.io/ingress.class: "nginx" spec: rules: - - host: eapp1.kubeoncloud.com + - host: eapp1.alpercan.site http: paths: - path: / diff --git a/13-Ingress-ExternalDNS-Domain-Name-Based-Routing/kube-manifests/04-IngressService-Manifests/01-Ingress-DomainName-Based-Routing-app1-2-3.yml b/13-Ingress-ExternalDNS-Domain-Name-Based-Routing/kube-manifests/04-IngressService-Manifests/01-Ingress-DomainName-Based-Routing-app1-2-3.yml index 277c5875..bc392c38 100644 --- a/13-Ingress-ExternalDNS-Domain-Name-Based-Routing/kube-manifests/04-IngressService-Manifests/01-Ingress-DomainName-Based-Routing-app1-2-3.yml +++ b/13-Ingress-ExternalDNS-Domain-Name-Based-Routing/kube-manifests/04-IngressService-Manifests/01-Ingress-DomainName-Based-Routing-app1-2-3.yml @@ -6,7 +6,7 @@ metadata: kubernetes.io/ingress.class: "nginx" spec: rules: - - host: eapp1.kubeoncloud.com + - host: eapp1.alpercan.site http: paths: - path: / @@ -16,7 +16,7 @@ spec: name: app1-nginx-clusterip-service port: number: 80 - - host: eapp2.kubeoncloud.com + - host: eapp2.alpercan.site http: paths: - path: / @@ -26,7 +26,7 @@ spec: name: app2-nginx-clusterip-service port: number: 80 - - host: eapp3.kubeoncloud.com + - host: eapp3.alpercan.site http: paths: - path: / diff --git a/14-Ingress-SSL-with-LetsEncrypt/kube-manifests/01-CertManager-ClusterIssuer/cluster-issuer.yml b/14-Ingress-SSL-with-LetsEncrypt/kube-manifests/01-CertManager-ClusterIssuer/cluster-issuer.yml index 758db0d3..139894d5 100644 --- a/14-Ingress-SSL-with-LetsEncrypt/kube-manifests/01-CertManager-ClusterIssuer/cluster-issuer.yml +++ b/14-Ingress-SSL-with-LetsEncrypt/kube-manifests/01-CertManager-ClusterIssuer/cluster-issuer.yml @@ -7,7 +7,7 @@ spec: # The ACME server URL server: https://acme-v02.api.letsencrypt.org/directory # Email address used for ACME registration - email: dkalyanreddy@gmail.com + email: alper.can@outlook.com # Name of a secret used to store the ACME account private key privateKeySecretRef: name: letsencrypt diff --git a/14-Ingress-SSL-with-LetsEncrypt/kube-manifests/03-Ingress-SSL-Resource/01-Ingress-SSL.yml b/14-Ingress-SSL-with-LetsEncrypt/kube-manifests/03-Ingress-SSL-Resource/01-Ingress-SSL.yml index 0b863671..ce693d56 100644 --- a/14-Ingress-SSL-with-LetsEncrypt/kube-manifests/03-Ingress-SSL-Resource/01-Ingress-SSL.yml +++ b/14-Ingress-SSL-with-LetsEncrypt/kube-manifests/03-Ingress-SSL-Resource/01-Ingress-SSL.yml @@ -7,7 +7,7 @@ metadata: cert-manager.io/cluster-issuer: letsencrypt spec: rules: - - host: sapp1.kubeoncloud.com + - host: sapp1.alpercan.site http: paths: - path: / @@ -17,7 +17,7 @@ spec: name: app1-nginx-clusterip-service port: number: 80 - - host: sapp2.kubeoncloud.com + - host: sapp2.alpercan.site http: paths: - path: / @@ -29,10 +29,10 @@ spec: number: 80 tls: - hosts: - - sapp1.kubeoncloud.com + - sapp1.alpercan.site secretName: sapp1-kubeoncloud-secret - hosts: - - sapp2.kubeoncloud.com + - sapp2.alpercan.site secretName: sapp2-kubeoncloud-secret diff --git a/17-Azure-VirtualNodes-for-AKS/17-01-Azure-VirtualNodes-Basics/kube-manifests/01-NginxApp1-Deployment.yml b/17-Azure-VirtualNodes-for-AKS/17-01-Azure-VirtualNodes-Basics/kube-manifests/01-NginxApp1-Deployment.yml index 841617ed..cab4b96e 100644 --- a/17-Azure-VirtualNodes-for-AKS/17-01-Azure-VirtualNodes-Basics/kube-manifests/01-NginxApp1-Deployment.yml +++ b/17-Azure-VirtualNodes-for-AKS/17-01-Azure-VirtualNodes-Basics/kube-manifests/01-NginxApp1-Deployment.yml @@ -5,6 +5,15 @@ metadata: labels: app: app1-nginx spec: + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: virtual-kubelet.io/provider + operator: In + values: + - linux replicas: 2 selector: matchLabels: @@ -18,16 +27,4 @@ spec: - name: app1-nginx image: stacksimplify/kube-nginxapp1:1.0.0 ports: - - containerPort: 80 -# To schedule pods on Azure Virtual Nodes - nodeSelector: - kubernetes.io/role: agent - beta.kubernetes.io/os: linux - type: virtual-kubelet - tolerations: - - key: virtual-kubelet.io/provider - operator: Exists - - key: azure.com/aci - effect: NoSchedule - - \ No newline at end of file + - containerPort: 80 \ No newline at end of file