- 积分
- 16843
在线时间 小时
最后登录1970-1-1
|

楼主 |
发表于 2025-1-3 08:00:01
|
显示全部楼层
kubeadm-config.yaml+ u' P/ N. m/ W4 f& h
4 t/ j! |# S. r7 @6 }9 F
apiVersion: kubeadm.k8s.io/v1beta1
( |' ? {" j7 e. Y5 o/ q8 r$ O& h. ykind: ClusterConfiguration) k, e( `8 W; k3 h* h* n6 {
kubernetesVersion: v1.14.3 # change according to kubeadm supported version" D/ t" I9 U. a% Y( w p) c
apiServer:. {* Z# B" E0 ^/ Z4 U: G$ }# _+ @' r# S
certSANs:
3 z2 W, l/ z' q1 q0 y) z4 S3 } - 127.0.0.1( h/ ?5 D: s3 ~- u! Y& W
- cluster-api.example.com # change according to your requirements% a1 y' S [8 T7 B5 ~1 \6 s! w
extraArgs:
' t% S. n4 m6 X- T* j- _ authorization-mode: Node,RBAC# S1 @5 F4 s5 C
feature-gates: "TTLAfterFinished=true"
, D) F" u' V t% s2 A# { audit-policy-file: "/etc/kubernetes/audit-policy.yaml"
) ~+ J8 Z a0 o8 ^) ?/ p audit-log-path: "/etc/kubernetes/audit/kube-apiserver-audit.log"
7 m$ M% h/ a2 {7 r3 L1 e* H audit-log-maxage: "2"
0 ~9 Z3 ^1 p- h) [ extraVolumes:
( _" V# q- D6 J# x; v: @ - name: "audit-policy"
- L' R. N- \/ e5 k hostPath: "/etc/kubernetes/audit-policy.yaml"
5 @6 W" f4 I' |6 |, L3 Q mountPath: "/etc/kubernetes/audit-policy.yaml", _( G+ H) L5 c9 G7 {" E
readOnly: false
8 ~" b0 k( e+ a! _. V6 X pathType: File
/ r5 U5 l$ U$ h9 |' D5 p' v* K - name: "audit-volume"
3 Q! ^# M2 d6 x& l& t/ } hostPath: "/var/log/kubernetes/audit"
. e; s9 f* w6 l D mountPath: "/etc/kubernetes/audit"
+ O. s% x4 n2 J# K readOnly: false- B- y" g% v2 s! d: \( H
pathType: DirectoryOrCreate. |; s: _3 e( L5 R& f3 g7 n( Q' ?' i
timeoutForControlPlane: 4m0s
; Y$ n/ a5 y$ R% b" S3 o) xcertificatesDir: /etc/kubernetes/pki
* u- P5 _4 j# \0 C4 s+ |" O2 JclusterName: kubernetes3 L1 j8 \: B; J( i6 q
controlPlaneEndpoint: ""( S7 B9 ^4 R! l! M0 s- H$ C$ r
controllerManager:
! ]; H1 [! S+ e" {$ a# T U extraArgs:
. X. b; [! b: f( Y! z8 a- U$ e feature-gates: "TTLAfterFinished=true"
4 a* l5 e7 s* y3 \4 q" B bind-address: 0.0.0.0: T5 f g, i( N
dns:% D0 j. b" t: |; p! O- b0 e2 `
type: CoreDNS
, ?1 {/ D- q% F' m. a3 o. qetcd:
0 w0 B! M) d- z3 q' Y& A local:
6 v$ `9 y& U, V8 a$ g" E dataDir: /var/lib/etcd
4 S. ~* [# F& Q U8 [5 vimageRepository: k8s.gcr.io
; ^( d! B2 y' s" Wnetworking:
' K7 d" s8 N! u dnsDomain: cluster.local
9 l. N1 T# u8 ~& G9 { podSubnet: 192.168.0.0/16 # change according to your requirements2 w6 F: ]; O, ^( M" Y' M2 p, K, x! X. c$ K
serviceSubnet: 10.96.0.0/12 # change according to your requirements Z- A( ?4 f% D& R
scheduler:
G8 p; {* N7 M( w% l extraArgs:8 C9 l9 ^$ U9 I3 q8 a
feature-gates: "TTLAfterFinished=true"
5 G! W& ^# x/ G5 {" Q' Q bind-address: 0.0.0.00 ^/ C1 I, g* R& W
---
3 I( y3 V! {1 `2 L. D/ L( M4 z k6 ?apiVersion: kubelet.config.k8s.io/v1beta1
2 Q3 d' k& P1 B5 g) ~kind: KubeletConfiguration
7 v& K9 X. S. ^/ S( @FeatureGates:- D( j9 l& r; j8 `0 d* g
TTLAfterFinished: true |
|