-
Notifications
You must be signed in to change notification settings - Fork 158
Expand file tree
/
Copy pathdeploy-proxy.yaml
More file actions
72 lines (72 loc) · 1.86 KB
/
deploy-proxy.yaml
File metadata and controls
72 lines (72 loc) · 1.86 KB
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: proxy
labels:
app: jupyterhub
component: proxy
spec:
selector:
matchLabels:
app: jupyterhub
component: proxy
template:
metadata:
labels:
app: jupyterhub
component: proxy
spec:
containers:
- name: nginx
image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.9.0
args:
- /nginx-ingress-controller
- --default-backend-service=default/proxy-http
- --configmap=default/nginx-proxy-config
- --ingress-class=jupyterhub-proxy
- --watch-namespace=default
env:
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
ports:
- name: http
containerPort: 80
protocol: TCP
- name: chp
image: jupyterhub/configurable-http-proxy:3.0.0
command:
- configurable-http-proxy
- --ip=0.0.0.0
- --port=8000
- --api-ip=0.0.0.0
- --api-port=8001
- --default-target=http://$(HUB_SERVICE_HOST):$(HUB_SERVICE_PORT)
- --error-target=http://$(HUB_SERVICE_HOST):$(HUB_SERVICE_PORT)
- --log-level=debug
env:
- name: CONFIGPROXY_AUTH_TOKEN
valueFrom:
secretKeyRef:
key: proxy.token
name: hub-secret
ports:
- name: proxy-public
containerPort: 8000
protocol: TCP
- name: api
containerPort: 8001
protocol: TCP
resources:
requests:
cpu: 200m
memory: 100M
serviceAccount: proxy
serviceAccountName: proxy