forked from kaluzaaa/gp-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo20.yaml
60 lines (60 loc) · 1.09 KB
/
demo20.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
59
60
# https://docs.microsoft.com/en-us/azure/aks/azure-files-volume
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: files
annotations:
kubernetes.io/ingress.class: nginx
spec:
rules:
- host: files.gp.kaluzny.io
http:
paths:
- backend:
serviceName: files
servicePort: 80
path: /
---
apiVersion: v1
kind: Service
metadata:
name: files
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 80
protocol: TCP
selector:
app: files
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: files
spec:
selector:
matchLabels:
app: files
replicas: 1
template:
metadata:
labels:
app: files
spec:
containers:
- image: nginx
name: nginx
ports:
- containerPort: 80
name: http
protocol: TCP
volumeMounts:
- name: demo
mountPath: /usr/share/nginx/html
volumes:
- name: demo
azureFile:
secretName: azure-secret
shareName: k8share
readOnly: false