Skip to content

Commit

Permalink
Merge pull request #117 from liangyuanpeng/kubeadm_0
Browse files Browse the repository at this point in the history
add kubeadm
  • Loading branch information
Peefy authored Mar 8, 2024
2 parents ef8a3f8 + 91860a0 commit 9709236
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 0 deletions.
27 changes: 27 additions & 0 deletions kubeadm/1.29/artifacthub-pkg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: 1.29.0+kcl0
name: kubeadm
displayName: kubeadm
createdAt: "2024-03-08T04:14:30Z"
description: '`kubeadm` is the kubeadm spec definition'
links:
- name: kubeadm homepage
url: https://kubernetes.io/docs/reference/setup-tools/kubeadm/
- name: kubeadm repo
url: https://github.com/kubernetes/kubeadm
install: |
#### Add `kubeadm` with tag `1.29.0+kcl0` as dependency
```
kcl mod add kubeadm:1.29.0+kcl0
```
#### Pull `kubeadm` with tag `1.29.0+kcl0` to local
```
kcl mod pull kubeadm:1.29.0+kcl0
```
maintainers:
- name: kcl-lang.io
email: [email protected]
- name: Lan Liang
email: [email protected]
provider:
name: kcl-lang.io
5 changes: 5 additions & 0 deletions kubeadm/1.29/kcl.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[package]
name = "kubeadm"
edition = "*"
version = "1.29.0+kcl0"
description = "`kubeadm` is a KCL module."
30 changes: 30 additions & 0 deletions kubeadm/1.29/v1beta3/cluster_configuration.k
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

schema ClusterConfiguration:
apiVersion: str = "kubeadm.k8s.io/v1beta3"
kind: str = "ClusterConfiguration"
certificatesDir: str = "/etc/kubernetes/pki"
clusterName: str = "kubernetes"
imageRepository: str = "registry.k8s.io"
kubernetesVersion: str = "1.29.0"
etcd: Etcd={}
networking: Networking={}
apiServer: ApiServer={}

schema Networking:
dnsDomain: str = "cluster.local"
serviceSubnet: str = "10.96.0.0/12"
podSubnet: str = "10.244.0.0/16"

schema Etcd:
local: LocalEtcd = {}

schema LocalEtcd:
dataDir: str = "/var/lib/etcd"

schema ExternalEtcd:
endpoints = []

schema ApiServer:
timeoutForControlPlane: str = "4m0s"
certSANs = ["127.0.0.1","100.90.54.35"]
extraArgs = {"event-ttl": "99999h"}
20 changes: 20 additions & 0 deletions kubeadm/1.29/v1beta3/init_configuration.k
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
schema InitConfiguration:
apiVersion: str = "kubeadm.k8s.io/v1beta3"
kind: str = "InitConfiguration"
localAPIEndpoint: LocalAPIEndpoint = {}
nodeRegistration: NodeRegistration = {}

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
ttl: str = "24h0m0s"
usages = ["signing","authentication"]
3 changes: 3 additions & 0 deletions kubeadm/1.29/v1beta3/kubelet_configuration.k
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
schema KubeletConfiguration:
apiVersion: str = "kubeadm.k8s.io/v1beta3"
kind: str = "KubeletConfiguration"

0 comments on commit 9709236

Please sign in to comment.