|
|
楼主 |
发表于 2025-1-3 08:00:01
|
显示全部楼层
kubeadm-config.yaml5 T8 q5 p1 A9 O$ w* q/ c
$ A$ n* n( i$ W5 TapiVersion: kubeadm.k8s.io/v1beta1
4 ^6 b4 V& Q6 Fkind: ClusterConfiguration
0 [) D: L$ l0 T, U( k2 akubernetesVersion: v1.14.3 # change according to kubeadm supported version
2 T9 f" v; |; t! T! T, t: @8 {apiServer:
3 H6 u: ?- d1 Q/ O certSANs:& n; P! j1 N* K8 L; Z2 A) b
- 127.0.0.1
; l! e) J( [# w8 d* E5 t+ F - cluster-api.example.com # change according to your requirements
9 E# ~; f# i' n8 ]" ]$ N extraArgs:
: I2 ? \: z7 n: i) Z3 e authorization-mode: Node,RBAC& i. F9 W- d% f: `8 V$ K
feature-gates: "TTLAfterFinished=true"
) y1 l C$ [9 Z' y2 D- r( X- P' B" C9 R audit-policy-file: "/etc/kubernetes/audit-policy.yaml"; U5 {$ T( U% k2 V7 P5 J- }
audit-log-path: "/etc/kubernetes/audit/kube-apiserver-audit.log"
+ ]" a, c1 A7 O5 y7 @, ~# F4 x8 S audit-log-maxage: "2"
$ n& F+ u1 ~% U! p3 {" t extraVolumes:+ R3 g9 Q. R9 h7 x; J6 H4 g0 T; z- a
- name: "audit-policy"
& x5 Q y% g0 r: f" D5 b% } hostPath: "/etc/kubernetes/audit-policy.yaml"4 [0 L! z7 c& k( V' o* a
mountPath: "/etc/kubernetes/audit-policy.yaml"- P/ z$ o( _% E# }
readOnly: false# S$ C! G6 ^1 l9 H
pathType: File* R- C$ \1 T% [7 A! G
- name: "audit-volume"" ?1 a% s+ I4 [
hostPath: "/var/log/kubernetes/audit"0 v* m/ o) [+ O8 }! ?
mountPath: "/etc/kubernetes/audit"0 r) U3 E( {& P
readOnly: false
. a7 l9 @( @% A1 K. c$ T pathType: DirectoryOrCreate
z& p; o8 {0 e; k* L timeoutForControlPlane: 4m0s! b1 g& O7 i0 f9 q: ?" C
certificatesDir: /etc/kubernetes/pki
3 B* F7 ?6 u0 [4 d) sclusterName: kubernetes* i7 u7 n! T7 A6 J' `
controlPlaneEndpoint: ""
: T% ?; i5 q* [3 j1 Y v# qcontrollerManager:
/ c/ b) D, U5 f0 l0 M n1 h n extraArgs:
4 M* C& y$ i" V0 u3 z feature-gates: "TTLAfterFinished=true"
/ b2 o" l, V7 `( g bind-address: 0.0.0.0! C# e6 F, I% p4 P( `& Z
dns:& ?1 u5 k$ ^8 f% J V) j
type: CoreDNS
+ }, t2 t# E/ P, r# q% ^etcd:
: @; d' m+ _3 T+ r. k4 p& } local:
& S' x# {9 ~8 r7 U7 k dataDir: /var/lib/etcd6 Y. g# k L6 t; S, y
imageRepository: k8s.gcr.io4 y4 i. G5 g5 \
networking:4 X+ w C# q& D) S+ s# g
dnsDomain: cluster.local
' m4 f' a. g& `6 O podSubnet: 192.168.0.0/16 # change according to your requirements8 e- b/ l5 K! \8 _9 y
serviceSubnet: 10.96.0.0/12 # change according to your requirements
" x" t- c' [" a9 [scheduler:
# h+ t# J' v- Y! p extraArgs:5 q% g, r9 J4 z' N" e2 s
feature-gates: "TTLAfterFinished=true"- y9 o* x2 a7 j3 H: d
bind-address: 0.0.0.0
/ l: u9 u: _7 N9 m g---
% g( k1 S, g2 q# D8 ]" y# j/ H( YapiVersion: kubelet.config.k8s.io/v1beta1
; q3 Z6 R: P9 B, g# y5 s0 \kind: KubeletConfiguration' p- b2 x3 r9 `3 O9 {+ o- f7 I
FeatureGates:
4 h$ G) p6 w1 i6 U- r, D( c TTLAfterFinished: true |
|