This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
devpi-app.yaml
75 lines (75 loc) · 1.6 KB
/
devpi-app.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
apiVersion: v1
kind: Service
metadata:
name: devpi
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 80
selector:
app: devpi
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: devpi
spec:
template:
metadata:
labels:
app: devpi
spec:
volumes:
- name: data
gcePersistentDisk:
pdName: devpi-disk
fsType: ext4
- name: nginx-htpasswd
secret:
secretName: devpi
items:
- key: htpasswd
path: htpasswd
- name: nginx-conf
configMap:
name: nginx-conf
items:
- key: nginx.conf
path: nginx.conf
containers:
- name: devpi
image: fyndiq/docker-devpi:4.1.0
ports:
- containerPort: 3141
volumeMounts:
- mountPath: /data
name: data
env:
- name: DEVPI_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: devpi
key: root-password
- name: DEVPI_USER
valueFrom:
secretKeyRef:
name: devpi
key: user
- name: DEVPI_PASSWORD
valueFrom:
secretKeyRef:
name: devpi
key: password
- name: DEVPI_INDEX
value: dev
- name: nginx
image: nginx:1.11.1-alpine
ports:
- containerPort: 80
volumeMounts:
- name: nginx-htpasswd
mountPath: /etc/nginx-htpasswd
readOnly: true
- name: nginx-conf
mountPath: /etc/nginx/conf.d