forked from stacksimplify/azure-aks-kubernetes-masterclass
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kalyan Reddy Daida
authored and
Kalyan Reddy Daida
committed
Aug 4, 2020
1 parent
b1bcc45
commit 7896f58
Showing
12 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: networking.k8s.io/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: ingress1 | ||
annotations: | ||
kubernetes.io/ingress.class: "nginx" | ||
spec: | ||
rules: | ||
- http: | ||
paths: | ||
- path: / | ||
backend: | ||
serviceName: app1-nginx-clusterip-service | ||
servicePort: 80 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Ingress - Context Path Based Routing | ||
|
||
## Step-01: Introduction | ||
|
||
|
||
## Ingress Annotation Reference | ||
- https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/ | ||
|
||
## Other References | ||
- https://docs.nginx.com/nginx-ingress-controller/ | ||
|
23 changes: 23 additions & 0 deletions
23
...text-Path-Based-Routing/kube-manifests/01-NginxApp1-Manifests/01-NginxApp1-Deployment.yml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: app1-nginx-deployment | ||
labels: | ||
app: app1-nginx | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: app1-nginx | ||
template: | ||
metadata: | ||
labels: | ||
app: app1-nginx | ||
spec: | ||
containers: | ||
- name: app1-nginx | ||
image: stacksimplify/kube-nginxapp1:1.0.0 | ||
ports: | ||
- containerPort: 80 | ||
|
||
|
13 changes: 13 additions & 0 deletions
13
...th-Based-Routing/kube-manifests/01-NginxApp1-Manifests/02-NginxApp1-ClusterIP-Service.yml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: app1-nginx-clusterip-service | ||
labels: | ||
app: app1-nginx | ||
spec: | ||
type: ClusterIP | ||
selector: | ||
app: app1-nginx | ||
ports: | ||
- port: 80 | ||
targetPort: 80 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.