forked from kubernetes/cloud-provider-openstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathk8s-keystone-auth-pod.yaml
57 lines (57 loc) · 1.45 KB
/
k8s-keystone-auth-pod.yaml
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
apiVersion: v1
kind: Pod
metadata:
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
labels:
component: k8s-keystone-auth
tier: control-plane
name: k8s-keystone-auth
namespace: kube-system
spec:
serviceAccountName: k8s-keystone
containers:
- name: k8s-keystone-auth
image: docker.io/k8scloudprovider/k8s-keystone-auth:latest
args:
- /bin/k8s-keystone-auth
- --v=10
- --tls-cert-file
- /etc/kubernetes/pki/apiserver.crt
- --tls-private-key-file
- /etc/kubernetes/pki/apiserver.key
- --policy-configmap-name
- k8s-auth-policy
- --keystone-url=http://{{ keystone_auth_url }}:5000/v3
volumeMounts:
- mountPath: /etc/kubernetes/pki
name: k8s-certs
readOnly: true
- mountPath: /etc/kubernetes/webhook
name: k8s-webhook
readOnly: true
- mountPath: /etc/ssl/certs
name: ca-certs
readOnly: true
resources:
requests:
cpu: 200m
ports:
- containerPort: 8443
hostPort: 8443
name: https
protocol: TCP
hostNetwork: true
volumes:
- hostPath:
path: /etc/kubernetes/pki
type: DirectoryOrCreate
name: k8s-certs
- hostPath:
path: /etc/kubernetes/webhook
type: DirectoryOrCreate
name: k8s-webhook
- hostPath:
path: /etc/ssl/certs
type: DirectoryOrCreate
name: ca-certs