-
Notifications
You must be signed in to change notification settings - Fork 0
/
app1.yaml
50 lines (50 loc) · 850 Bytes
/
app1.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: app1-deployment
spec:
selector:
matchLabels:
app: app1
replicas: 1
template:
metadata:
labels:
app: app1
spec:
containers:
- name: nginx
image: nginx:1.16.1
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: app1-service
spec:
ports:
- name: nginx
port: 80
protocol: TCP
targetPort: 80
type: ClusterIP
selector:
app: app1
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: app1-ingress
labels:
app: app1
annotations:
kubernetes.io/ingress.class: azure/application-gateway
spec:
rules:
- host: ******
http:
paths:
- backend:
serviceName: app1-service
servicePort: 80