Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit d6038de

Browse files
authored
Merge pull request #35 from jetstack/yaml-example
Adds helpful kube-oidc-proxy deployment yamls
2 parents 9987e04 + ecf1fa6 commit d6038de

File tree

4 files changed

+28
-95
lines changed

4 files changed

+28
-95
lines changed

demo/gencreds.sh

Lines changed: 0 additions & 73 deletions
This file was deleted.

demo/openssl.cnf

Lines changed: 0 additions & 14 deletions
This file was deleted.

demo/kube-oidc-proxy.yaml renamed to demo/yaml/kube-oidc-proxy.yaml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ spec:
2828
app: kube-oidc-proxy
2929
spec:
3030
containers:
31-
- image: gcr.io/jetstack-josh/kube-oidc-proxy
31+
- image: quay.io/jetstack/kube-oidc-proxy
3232
ports:
3333
- containerPort: 443
3434
- containerPort: 8080
@@ -109,7 +109,27 @@ metadata:
109109
roleRef:
110110
apiGroup: rbac.authorization.k8s.io
111111
kind: ClusterRole
112-
name: cluster-admin
112+
name: kube-oidc-proxy
113113
subjects:
114114
- kind: User
115115
name: system:serviceaccount:kube-oidc-proxy:default
116+
---
117+
kind: ClusterRole
118+
apiVersion: rbac.authorization.k8s.io/v1
119+
metadata:
120+
name: kube-oidc-proxy
121+
rules:
122+
- apiGroups:
123+
- ""
124+
resources:
125+
- "users"
126+
- "groups"
127+
- "serviceaccounts"
128+
verbs:
129+
- "impersonate"
130+
- apiGroups:
131+
- "authentication.k8s.io"
132+
resources:
133+
- "userextras/scopes"
134+
verbs:
135+
- "impersonate"

demo/secrets.yaml renamed to demo/yaml/secrets.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
data:
3-
tls.crt: SERVING_TLS_CERT
4-
tls.key: SERVING_TLS_KEY
3+
tls.crt: {{ SERVING_TLS_CERT }}
4+
tls.key: {{ SERVING_TLS_KEY }}
55
kind: Secret
66
metadata:
77
name: kube-oidc-proxy-serving
@@ -10,10 +10,10 @@ type: kubernetes.io/tls
1010
---
1111
apiVersion: v1
1212
data:
13-
oidc.ca-pem:
14-
oidc.issuer-url:
15-
oidc.username-claim:
16-
oidc.client-id:
13+
oidc.ca-pem: {{ OIDC_CA }}
14+
oidc.issuer-url: {{ OIDC_ISSUER_URL }}
15+
oidc.username-claim: {{ OIDC_USERNAME_CLAIM }}
16+
oidc.client-id: {{ OIDC_CLIENT_ID }}
1717
kind: Secret
1818
metadata:
1919
name: kube-oidc-proxy-config

0 commit comments

Comments
 (0)