-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #171 from liangyuanpeng/kubeadm_update
update kubeadm, add more fields for v1beta3.
- Loading branch information
Showing
10 changed files
with
89 additions
and
43 deletions.
There are no files selected for viewing
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## Introduction | ||
|
||
`kubeadm` is the kubeadm spec definition | ||
|
||
|
||
|
||
## Resource | ||
|
||
Code source and document is [here](https://github.com/kcl-lang/artifacthub/tree/main/kubeadm) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[package] | ||
name = "kubeadm" | ||
edition = "*" | ||
version = "1.29.0+kcl0" | ||
version = "0.0.1" | ||
description = "`kubeadm` is a KCL module." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
|
||
schema ClusterConfiguration: | ||
apiVersion: str = "kubeadm.k8s.io/v1beta3" | ||
kind: str = "ClusterConfiguration" | ||
featureGates?: {str:bool} | ||
controlPlaneEndpoint?: str | ||
certificatesDir: str = "/etc/kubernetes/pki" | ||
clusterName: str = "kubernetes" | ||
imageRepository: str = "registry.k8s.io" | ||
kubernetesVersion: str = "1.30.3" | ||
etcd?: Etcd | ||
networking?: Networking | ||
apiServer?: ApiServer | ||
controllerManager?: ControllerManager | ||
scheduler?: Scheduler | ||
dns?: Dns | ||
|
||
schema Networking: | ||
dnsDomain: str = "cluster.local" | ||
serviceSubnet: str = "10.96.0.0/12" | ||
podSubnet: str = "10.244.0.0/16" | ||
|
||
schema Etcd: | ||
local?: LocalEtcd | ||
external?: ExternalEtcd | ||
|
||
check: | ||
local !=None and external !=None | ||
|
||
schema LocalEtcd: | ||
dataDir: str = "/var/lib/etcd" | ||
|
||
schema ExternalEtcd: | ||
endpoints: [str] | ||
|
||
schema ApiServer: | ||
timeoutForControlPlane: str = "4m0s" | ||
certSANs = ["127.0.0.1"] | ||
extraArgs?: {str:str} | ||
extraVolumes?: [ExtraVolumeItem] | ||
|
||
schema ExtraVolumeItem: | ||
name: str | ||
hostPath: str | ||
mountPath: str | ||
|
||
schema ControllerManager: | ||
extraArgs?: {str:str} | ||
|
||
schema Scheduler: | ||
extraArgs?: {str:str} | ||
|
||
schema Dns: | ||
imageRepository?: str |
11 changes: 7 additions & 4 deletions
11
kubeadm/1.29/v1beta3/init_configuration.k → kubeadm/v1beta3/init_configuration.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
schema InitConfiguration: | ||
apiVersion: str = "kubeadm.k8s.io/v1beta3" | ||
kind: str = "InitConfiguration" | ||
localAPIEndpoint: LocalAPIEndpoint = {} | ||
nodeRegistration: NodeRegistration = {} | ||
localAPIEndpoint?: LocalAPIEndpoint | ||
nodeRegistration?: NodeRegistration | ||
patches?: PatcheItem | ||
|
||
schema NodeRegistration: | ||
criSocket: str = "unix:///var/run/containerd/containerd.sock" | ||
imagePullPolicy: str = "IfNotPresent" | ||
taints = [] | ||
|
||
schema LocalAPIEndpoint: | ||
advertiseAddress: str = "127.0.0.1" | ||
bindPort: int = 6443 | ||
|
||
schema BootstrapTokens: | ||
groups = ["system:bootstrappers:kubeadm:default-node-token" ] | ||
token: str | ||
token?: str | ||
ttl: str = "24h0m0s" | ||
usages = ["signing","authentication"] | ||
|
||
schema PatcheItem: | ||
directory?: str |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
schema KubeletConfiguration: | ||
apiVersion: str = "kubelet.config.k8s.io/v1beta1" | ||
kind: str = "KubeletConfiguration" | ||
maxParallelImagePulls?: int | ||
serializeImagePulls?: bool | ||
podPidsLimit?: int | ||
featureGates?: {str:bool} | ||
address?: str |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
schema ResetConfiguration: | ||
apiVersion: str = "kubeadm.k8s.io/v1beta3" | ||
kind: str = "ResetConfiguration" | ||
certificatesDir?: str | ||
criSocket?: str |