Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add kubeadm #117

Merged
merged 1 commit into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: kcl-lang.io@domainsbyproxy.com
- name: Lan Liang
email: gcslyp@gmail.com
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"
Loading