-
Notifications
You must be signed in to change notification settings - Fork 1
/
registry.yaml
47 lines (46 loc) · 860 Bytes
/
registry.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
# Create a pod that reads and writes to the
# NFS server via an NFS volume.
apiVersion: apps/v1
kind: Deployment
metadata:
name: registry
spec:
selector:
matchLabels:
run: registry
replicas: 1
template:
metadata:
labels:
run: registry
spec:
volumes:
- name: nfs-volume
nfs:
server: 10.42.94.55
path: /candle2
containers:
- name: registry
image: registry
imagePullPolicy: IfNotPresent
ports:
- containerPort: 5000
volumeMounts:
- name: nfs-volume
mountPath: /usr/share/nginx/html
---
apiVersion: v1
kind: Service
metadata:
name: registry
labels:
run: registry
spec:
type: NodePort
ports:
- port: 5000
targetPort: 5000
nodePort: 30500
protocol: TCP
selector:
run: registry