Skip to content
This repository was archived by the owner on Mar 22, 2018. It is now read-only.

Commit 5cdcc93

Browse files
committed
Add a daemonset for keystone webhook
1 parent f685f72 commit 5cdcc93

2 files changed

Lines changed: 71 additions & 1 deletion

File tree

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
apiVersion: extensions/v1beta1
2+
kind: DaemonSet
3+
metadata:
4+
name: k8s-keystone-auth
5+
namespace: kube-system
6+
labels:
7+
k8s-app: k8s-keystone-auth
8+
spec:
9+
selector:
10+
matchLabels:
11+
k8s-app: k8s-keystone-auth
12+
updateStrategy:
13+
type: RollingUpdate
14+
template:
15+
metadata:
16+
labels:
17+
k8s-app: k8s-keystone-auth
18+
spec:
19+
hostNetwork: true
20+
tolerations:
21+
- key: node.cloudprovider.kubernetes.io/uninitialized
22+
value: "true"
23+
effect: NoSchedule
24+
- key: node-role.kubernetes.io/master
25+
effect: NoSchedule
26+
containers:
27+
- name: k8s-keystone-auth
28+
image: dims/k8s-keystone-auth:0.1.0
29+
args:
30+
- /bin/k8s-keystone-auth
31+
- --v=10
32+
- --tls-cert-file
33+
- /etc/kubernetes/pki/apiserver.crt
34+
- --tls-private-key-file
35+
- /etc/kubernetes/pki/apiserver.key
36+
- --keystone-policy-file
37+
- /etc/kubernetes/webhook/policy.json
38+
- --keystone-url=http://ctl:5000/v3
39+
volumeMounts:
40+
- mountPath: /etc/kubernetes/pki
41+
name: k8s-certs
42+
readOnly: true
43+
- mountPath: /etc/kubernetes/webhook
44+
name: k8s-webhook
45+
readOnly: true
46+
- mountPath: /etc/ssl/certs
47+
name: ca-certs
48+
readOnly: true
49+
resources:
50+
requests:
51+
cpu: 200m
52+
ports:
53+
- containerPort: 8443
54+
hostPort: 8443
55+
name: https
56+
protocol: TCP
57+
hostNetwork: true
58+
volumes:
59+
- hostPath:
60+
path: /etc/kubernetes/pki
61+
type: DirectoryOrCreate
62+
name: k8s-certs
63+
- hostPath:
64+
path: /etc/kubernetes/webhook
65+
type: DirectoryOrCreate
66+
name: k8s-webhook
67+
- hostPath:
68+
path: /etc/ssl/certs
69+
type: DirectoryOrCreate
70+
name: ca-certs

manifests/webhook/k8s-keystone-auth.yaml renamed to manifests/webhook/k8s-keystone-auth-pod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
annotations:
55
scheduler.alpha.kubernetes.io/critical-pod: ""
66
labels:
7-
component: kube-controller-manager
7+
component: k8s-keystone-auth
88
tier: control-plane
99
name: k8s-keystone-auth
1010
namespace: kube-system

0 commit comments

Comments
 (0)