Difference between revisions of "/etc/kubernetes/manifests/kube-apiserver.yaml"

From wikieduonline
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
  [[/etc/kubernetes/manifests/]]kube-apiserver.yaml
 
  [[/etc/kubernetes/manifests/]]kube-apiserver.yaml
  
 +
<pre>
 +
apiVersion: v1
 +
kind: Pod
 +
metadata:
 +
  creationTimestamp: null
 +
  labels:
 +
    component: kube-apiserver
 +
    tier: control-plane
 +
  name: kube-apiserver
 +
  namespace: kube-system
 +
spec:
 +
  containers:
 +
  - command:
 +
    - kube-apiserver
 +
    - --advertise-address=192.168.100.21
 +
...
 +
    - --service-account-key-file=/etc/kubernetes/pki/sa.pub
 +
    - --service-cluster-ip-range=11.96.0.0/12            # change
 +
    - --tls-cert-file=/etc/kubernetes/pki/apiserver.crt
 +
    - --tls-private-key-file=/etc/kubernetes/pki/apiserver.key
 +
...
 +
</pre>
  
  
 +
== See also ==
 +
* {{K8s API}}
  
 
+
[[Category:K8s]]
{{K8s API}}
 

Latest revision as of 10:43, 3 December 2022

/etc/kubernetes/manifests/kube-apiserver.yaml
apiVersion: v1
kind: Pod
metadata:
  creationTimestamp: null
  labels:
    component: kube-apiserver
    tier: control-plane
  name: kube-apiserver
  namespace: kube-system
spec:
  containers:
  - command:
    - kube-apiserver
    - --advertise-address=192.168.100.21
...
    - --service-account-key-file=/etc/kubernetes/pki/sa.pub
    - --service-cluster-ip-range=11.96.0.0/12             # change
    - --tls-cert-file=/etc/kubernetes/pki/apiserver.crt
    - --tls-private-key-file=/etc/kubernetes/pki/apiserver.key
...


See also[edit]

Advertising: