Skip to content

Instantly share code, notes, and snippets.

@harsimranmaan
Last active September 15, 2020 02:40
Show Gist options
  • Save harsimranmaan/2e77cf65019439052122b7b89f926686 to your computer and use it in GitHub Desktop.
Save harsimranmaan/2e77cf65019439052122b7b89f926686 to your computer and use it in GitHub Desktop.
jupyterhub-istio-proxy.yaml deploy + svc
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: jupyterhub
component: proxy
name: proxy
spec:
replicas: 1
selector:
matchLabels:
app: jupyterhub
component: proxy
release: RELEASE-NAME
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: jupyterhub
component: proxy
release: RELEASE-NAME
spec:
containers:
- command:
- /proxy/jupyterhub-istio-proxy
env:
- name: CONFIGPROXY_AUTH_TOKEN
valueFrom:
secretKeyRef:
key: proxy.token
name: hub-secret
- name: ISTIO_GATEWAY
value: jupyterhub-gateway
- name: K8S_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: SUB_DOMAIN_HOST
value: '*'
- name: VIRTUAL_SERVICE_PREFIX
value: jupyterhub
- name: WAIT_FOR_WARMUP
value: "true"
image: splunk/jupyterhub-istio-proxy:0.0.2
imagePullPolicy: IfNotPresent
name: proxy
ports:
- containerPort: 8000
name: proxy-api
protocol: TCP
resources:
limits:
cpu: "1"
memory: 256M
requests:
cpu: 100m
memory: 256M
securityContext:
allowPrivilegeEscalation: false
securityContext:
runAsNonRoot: true
terminationGracePeriodSeconds: 60
---
apiVersion: v1
kind: Service
metadata:
name: proxy-api
spec:
ports:
- name: http-proxy-api
port: 8001
protocol: TCP
targetPort: 8000
selector:
component: proxy
type: ClusterIP
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment