-
Notifications
You must be signed in to change notification settings - Fork 1
/
simplepodwithAgic.yaml
60 lines (56 loc) · 1.63 KB
/
simplepodwithAgic.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# _____ _____ _ _ _ _ _____ _____ _____
# | __ \ | __ \ | | (_) | | | /\ / ____|_ _/ ____|
# | | | | ___ _ __ ___ ___ | |__) |__ __| | __ ___| |_| |__ / \ | | __ | || |
# | | | |/ _ \ '_ ` _ \ / _ \ | ___/ _ \ / _` | \ \ /\ / / | __| '_ \ / /\ \| | |_ | | || |
# | |__| | __/ | | | | | (_) | | | | (_) | (_| | \ V V /| | |_| | | | / ____ \ |__| |_| || |____
# |_____/ \___|_| |_| |_|\___/ |_| \___/ \__,_| \_/\_/ |_|\__|_| |_| /_/ \_\_____|_____\_____|
# You can you this sample to deploy and expose it with AGIC
# get your AKS kubeconfig
# then kubectl apply -f simplepodwithAGIC.yaml
apiVersion: v1
kind: Pod
metadata:
name: test-agic-app-pod
namespace: default
labels:
app: test-agic-app
spec:
containers:
- image: "mcr.microsoft.com/dotnet/core/samples:aspnetapp"
name: aspnetapp-image
ports:
- containerPort: 80
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: test-agic-app-service
namespace: default
spec:
selector:
app: test-agic-app
ports:
- protocol: TCP
port: 80
targetPort: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: test-agic-app-ingress
namespace: default
annotations:
kubernetes.io/ingress.class: azure/application-gateway
spec:
rules:
- host: demoingress2.demostan.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: test-agic-app-service
port:
number: 80