-
Notifications
You must be signed in to change notification settings - Fork 1
/
deployment.yaml
41 lines (41 loc) · 1.01 KB
/
deployment.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
kind: Deployment
apiVersion: apps/v1
metadata:
name: nxcloud
namespace: myorg-nxcloud
spec:
selector:
matchLabels:
app: nxcloud
replicas: 1
template:
metadata:
labels:
app: nxcloud
spec:
containers:
- name: nxcloud
image: example-registry.myorg.com/nxprivatecloud/nxcloud:latest
env:
- name: NX_CLOUD_APP_URL
value: 'https://nxcloud.myorg.com'
- name: ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: nxcloud
key: ADMIN_PASSWORD
- name: LICENSE_KEY
valueFrom:
secretKeyRef:
name: nxcloud
key: LICENSE_KEY
ports:
- containerPort: 8081
protocol: TCP
volumeMounts:
- name: nxcloud-data
mountPath: /data
volumes:
- name: nxcloud-data
persistentVolumeClaim:
claimName: nxcloud-data