Skip to content

Commit 0cee942

Browse files
committed
enable oauth proxy
1 parent e92fa41 commit 0cee942

File tree

2 files changed

+67
-2
lines changed

2 files changed

+67
-2
lines changed

charts/hub/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type: application
1616
# This is the chart version. This version number should be incremented each time you make changes
1717
# to the chart and its templates, including the app version.
1818
# Versions are expected to follow Semantic Versioning (https://semver.org/)
19-
version: 0.80.0
19+
version: 0.81.0
2020

2121
# This is the version number of the application being deployed. This version number should be
2222
# incremented each time you make changes to the application. Versions are not expected to

charts/hub/templates/admin/oauth2-proxy.yaml

+66-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,69 @@ spec:
2828
- hosts:
2929
- "{{ .Values.admin.url }}"
3030
secretName:
31-
{{- end }}
31+
---
32+
apiVersion: apps/v1
33+
kind: Deployment
34+
metadata:
35+
name: oauth2-proxy-admin
36+
namespace: kube-system
37+
labels:
38+
k8s-app: oauth2-proxy-admin
39+
spec:
40+
replicas: 1
41+
selector:
42+
matchLabels:
43+
k8s-app: oauth2-proxy-admin
44+
template:
45+
metadata:
46+
labels:
47+
k8s-app: oauth2-proxy-admin
48+
spec:
49+
containers:
50+
- args:
51+
- --provider=github
52+
- --email-domain=*
53+
- --upstream=file:///dev/null
54+
- --http-address=0.0.0.0:4180
55+
- --skip-auth-preflight=true
56+
env:
57+
- name: OAUTH2_PROXY_CLIENT_ID
58+
value: "{{ .Values.admin.oauth2Proxy.github.clientId }}"
59+
- name: OAUTH2_PROXY_CLIENT_SECRET
60+
value: "{{ .Values.admin.oauth2Proxy.github.clientSecret }}"
61+
- name: OAUTH2_PROXY_COOKIE_SECRET
62+
value: "{{ .Values.admin.oauth2Proxy.github.cookieSecret }}"
63+
- name: OAUTH2_PROXY_GITHUB_ORG
64+
value: "{{ .Values.admin.oauth2Proxy.github.organization }}"
65+
- name: OAUTH2_PROXY_GITHUB_TEAM
66+
value: "{{ .Values.admin.oauth2Proxy.github.team }}"
67+
image: quay.io/oauth2-proxy/oauth2-proxy:latest
68+
imagePullPolicy: Always
69+
name: oauth2-proxy
70+
ports:
71+
- containerPort: 4180
72+
protocol: TCP
73+
resources:
74+
limits:
75+
cpu: 100m
76+
memory: 50Mi
77+
requests:
78+
cpu: 100m
79+
memory: 50Mi
80+
---
81+
apiVersion: v1
82+
kind: Service
83+
metadata:
84+
labels:
85+
k8s-app: oauth2-proxy-admin
86+
name: oauth2-proxy-admin
87+
namespace: kube-system
88+
spec:
89+
ports:
90+
- name: http
91+
port: 4180
92+
protocol: TCP
93+
targetPort: 4180
94+
selector:
95+
k8s-app: oauth2-proxy-admin
96+
{{- end -}}

0 commit comments

Comments
 (0)