-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkube-apiserver.yaml
144 lines (144 loc) · 7.04 KB
/
kube-apiserver.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
apiVersion: v1
kind: Pod
metadata:
annotations:
kubeadm.kubernetes.io/kube-apiserver.advertise-address.endpoint: 192.168.121.100:6443
creationTimestamp: null
labels:
component: kube-apiserver
tier: control-plane
name: kube-apiserver
namespace: kube-system
spec:
containers:
- command:
- kube-apiserver
- --advertise-address=192.168.121.100
- --allow-privileged=true
- --authorization-mode=Node,RBAC
- --client-ca-file=/etc/kubernetes/pki/ca.crt
- --enable-admission-plugins=NodeRestriction,AlwaysPullImages
- --enable-bootstrap-token-auth=true
- --etcd-cafile=/etc/kubernetes/pki/etcd/ca.crt
- --etcd-certfile=/etc/kubernetes/pki/apiserver-etcd-client.crt
- --etcd-keyfile=/etc/kubernetes/pki/apiserver-etcd-client.key
- --etcd-servers=https://127.0.0.1:2379
- --kubelet-client-certificate=/etc/kubernetes/pki/apiserver-kubelet-client.crt
- --kubelet-client-key=/etc/kubernetes/pki/apiserver-kubelet-client.key
- --kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname
- --proxy-client-cert-file=/etc/kubernetes/pki/front-proxy-client.crt
- --proxy-client-key-file=/etc/kubernetes/pki/front-proxy-client.key
- --requestheader-allowed-names=front-proxy-client
- --requestheader-client-ca-file=/etc/kubernetes/pki/front-proxy-ca.crt
- --requestheader-extra-headers-prefix=X-Remote-Extra-
- --requestheader-group-headers=X-Remote-Group
- --requestheader-username-headers=X-Remote-User
- --secure-port=6443
- --service-account-issuer=https://kubernetes.default.svc.cluster.local
- --service-account-key-file=/etc/kubernetes/pki/sa.pub
- --service-account-signing-key-file=/etc/kubernetes/pki/sa.key
- --service-cluster-ip-range=10.96.0.0/12
- --tls-cert-file=/etc/kubernetes/pki/apiserver.crt
- --tls-private-key-file=/etc/kubernetes/pki/apiserver.key
- --kubelet-certificate-authority=/etc/kubernetes/pki/ca.crt
- --anonymous-auth=false
- --profiling=false
- --audit-log-path=/var/log/apiserver/audit.log
- --audit-log-maxage=30
- --audit-log-maxbackup=10
- --request-timeout=300s
- --audit-log-maxsize=100
image: k8s.gcr.io/kube-apiserver:v1.24.6
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 8
httpGet:
host: 192.168.121.100
path: /livez
port: 6443
scheme: HTTPS
httpHeaders:
- name: Authorization
value: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImxsX3BYNEhvMkstQ2VPalJKN2JGSnpZTGNGOURETzU4Yld4Vkh5N3NLdTgifQ.eyJhdWQiOlsiaHR0cHM6Ly9rdWJlcm5ldGVzLmRlZmF1bHQuc3ZjLmNsdXN0ZXIubG9jYWwiXSwiZXhwIjo1MjY3MDkxMTY1LCJpYXQiOjE2NjcwOTQ3NjUsImlzcyI6Imh0dHBzOi8va3ViZXJuZXRlcy5kZWZhdWx0LnN2Yy5jbHVzdGVyLmxvY2FsIiwia3ViZXJuZXRlcy5pbyI6eyJuYW1lc3BhY2UiOiJrdWJlLXN5c3RlbSIsInNlcnZpY2VhY2NvdW50Ijp7Im5hbWUiOiJkZWZhdWx0IiwidWlkIjoiZmYwZTg0ZGEtNTE4MC00NjkwLWE4NjMtOWIxZTIwODFiNTdiIn19LCJuYmYiOjE2NjcwOTQ3NjUsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDprdWJlLXN5c3RlbTpkZWZhdWx0In0.AgBOTo9kP7iD2iY_yVxptoICOu73Kp14W0mUL9dFhQxVg3eo_uTolo5_8uN6dW9hsdSqZpjGSSUD1jwsl6-YMx6EyjjIPeHk-Hw1W3cAxYHoL96b_Phq1RGnMHCC6cGXxgnCt2OwQCj1cJU40ggRGFL_mH3p9IqjV6ZCF3XdnW9jSC3h7gvxaiKiEtNlr9z2DjCl3-olZMs4wvY2paNeg8HwvWtBgmpSb9ol0imzuMf2GQvRjA9MyQ0G8m_UPpAkTfvYZuoP_7hRRYy5IDcUqTznAkuhmxAHrRiteLIeUfDMlPEXk4MxS7btkV4ng4GpKazQEDc9GeD9xcZg5R-uiw
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 15
name: kube-apiserver
readinessProbe:
failureThreshold: 3
httpGet:
host: 192.168.121.100
path: /readyz
port: 6443
scheme: HTTPS
httpHeaders:
- name: Authorization
value: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImxsX3BYNEhvMkstQ2VPalJKN2JGSnpZTGNGOURETzU4Yld4Vkh5N3NLdTgifQ.eyJhdWQiOlsiaHR0cHM6Ly9rdWJlcm5ldGVzLmRlZmF1bHQuc3ZjLmNsdXN0ZXIubG9jYWwiXSwiZXhwIjo1MjY3MDkxMTY1LCJpYXQiOjE2NjcwOTQ3NjUsImlzcyI6Imh0dHBzOi8va3ViZXJuZXRlcy5kZWZhdWx0LnN2Yy5jbHVzdGVyLmxvY2FsIiwia3ViZXJuZXRlcy5pbyI6eyJuYW1lc3BhY2UiOiJrdWJlLXN5c3RlbSIsInNlcnZpY2VhY2NvdW50Ijp7Im5hbWUiOiJkZWZhdWx0IiwidWlkIjoiZmYwZTg0ZGEtNTE4MC00NjkwLWE4NjMtOWIxZTIwODFiNTdiIn19LCJuYmYiOjE2NjcwOTQ3NjUsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDprdWJlLXN5c3RlbTpkZWZhdWx0In0.AgBOTo9kP7iD2iY_yVxptoICOu73Kp14W0mUL9dFhQxVg3eo_uTolo5_8uN6dW9hsdSqZpjGSSUD1jwsl6-YMx6EyjjIPeHk-Hw1W3cAxYHoL96b_Phq1RGnMHCC6cGXxgnCt2OwQCj1cJU40ggRGFL_mH3p9IqjV6ZCF3XdnW9jSC3h7gvxaiKiEtNlr9z2DjCl3-olZMs4wvY2paNeg8HwvWtBgmpSb9ol0imzuMf2GQvRjA9MyQ0G8m_UPpAkTfvYZuoP_7hRRYy5IDcUqTznAkuhmxAHrRiteLIeUfDMlPEXk4MxS7btkV4ng4GpKazQEDc9GeD9xcZg5R-uiw
periodSeconds: 1
timeoutSeconds: 15
resources:
requests:
cpu: 250m
startupProbe:
failureThreshold: 24
httpGet:
host: 192.168.121.100
path: /livez
port: 6443
scheme: HTTPS
httpHeaders:
- name: Authorization
value: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImxsX3BYNEhvMkstQ2VPalJKN2JGSnpZTGNGOURETzU4Yld4Vkh5N3NLdTgifQ.eyJhdWQiOlsiaHR0cHM6Ly9rdWJlcm5ldGVzLmRlZmF1bHQuc3ZjLmNsdXN0ZXIubG9jYWwiXSwiZXhwIjo1MjY3MDkxMTY1LCJpYXQiOjE2NjcwOTQ3NjUsImlzcyI6Imh0dHBzOi8va3ViZXJuZXRlcy5kZWZhdWx0LnN2Yy5jbHVzdGVyLmxvY2FsIiwia3ViZXJuZXRlcy5pbyI6eyJuYW1lc3BhY2UiOiJrdWJlLXN5c3RlbSIsInNlcnZpY2VhY2NvdW50Ijp7Im5hbWUiOiJkZWZhdWx0IiwidWlkIjoiZmYwZTg0ZGEtNTE4MC00NjkwLWE4NjMtOWIxZTIwODFiNTdiIn19LCJuYmYiOjE2NjcwOTQ3NjUsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDprdWJlLXN5c3RlbTpkZWZhdWx0In0.AgBOTo9kP7iD2iY_yVxptoICOu73Kp14W0mUL9dFhQxVg3eo_uTolo5_8uN6dW9hsdSqZpjGSSUD1jwsl6-YMx6EyjjIPeHk-Hw1W3cAxYHoL96b_Phq1RGnMHCC6cGXxgnCt2OwQCj1cJU40ggRGFL_mH3p9IqjV6ZCF3XdnW9jSC3h7gvxaiKiEtNlr9z2DjCl3-olZMs4wvY2paNeg8HwvWtBgmpSb9ol0imzuMf2GQvRjA9MyQ0G8m_UPpAkTfvYZuoP_7hRRYy5IDcUqTznAkuhmxAHrRiteLIeUfDMlPEXk4MxS7btkV4ng4GpKazQEDc9GeD9xcZg5R-uiw
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 15
volumeMounts:
- mountPath: /etc/ssl/certs
name: ca-certs
readOnly: true
- mountPath: /etc/ca-certificates
name: etc-ca-certificates
readOnly: true
- mountPath: /etc/pki
name: etc-pki
readOnly: true
- mountPath: /etc/kubernetes/pki
name: k8s-certs
readOnly: true
- mountPath: /usr/local/share/ca-certificates
name: usr-local-share-ca-certificates
readOnly: true
- mountPath: /usr/share/ca-certificates
name: usr-share-ca-certificates
readOnly: true
hostNetwork: true
priorityClassName: system-node-critical
securityContext:
seccompProfile:
type: RuntimeDefault
volumes:
- hostPath:
path: /etc/ssl/certs
type: DirectoryOrCreate
name: ca-certs
- hostPath:
path: /etc/ca-certificates
type: DirectoryOrCreate
name: etc-ca-certificates
- hostPath:
path: /etc/pki
type: DirectoryOrCreate
name: etc-pki
- hostPath:
path: /etc/kubernetes/pki
type: DirectoryOrCreate
name: k8s-certs
- hostPath:
path: /usr/local/share/ca-certificates
type: DirectoryOrCreate
name: usr-local-share-ca-certificates
- hostPath:
path: /usr/share/ca-certificates
type: DirectoryOrCreate
name: usr-share-ca-certificates
status: {}