Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changes #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ metadata:
name: mysql
spec:
type: ExternalName
externalName: akswebappdb.mysql.database.azure.com
externalName: akswebappdb34.mysql.database.azure.com
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ spec:
- name: DB_NAME
value: "webappdb"
- name: DB_USERNAME
value: "dbadmin@akswebappdb"
value: "dbadmin@akswebappdb34"
- name: DB_PASSWORD
value: "Redhat1449"
8 changes: 4 additions & 4 deletions 09-Ingress-Basic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 \
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
kubernetes.io/ingress.class: "nginx"
spec:
rules:
- host: eapp1.kubeoncloud.com
- host: eapp1.alpercan.site
http:
paths:
- path: /
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
kubernetes.io/ingress.class: "nginx"
spec:
rules:
- host: eapp1.kubeoncloud.com
- host: eapp1.alpercan.site
http:
paths:
- path: /
Expand All @@ -16,7 +16,7 @@ spec:
name: app1-nginx-clusterip-service
port:
number: 80
- host: eapp2.kubeoncloud.com
- host: eapp2.alpercan.site
http:
paths:
- path: /
Expand All @@ -26,7 +26,7 @@ spec:
name: app2-nginx-clusterip-service
port:
number: 80
- host: eapp3.kubeoncloud.com
- host: eapp3.alpercan.site
http:
paths:
- path: /
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
cert-manager.io/cluster-issuer: letsencrypt
spec:
rules:
- host: sapp1.kubeoncloud.com
- host: sapp1.alpercan.site
http:
paths:
- path: /
Expand All @@ -17,7 +17,7 @@ spec:
name: app1-nginx-clusterip-service
port:
number: 80
- host: sapp2.kubeoncloud.com
- host: sapp2.alpercan.site
http:
paths:
- path: /
Expand All @@ -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


Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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


- containerPort: 80