Skip to content

Commit f20679c

Browse files
author
Your Name
committed
controlplane
1 parent 29a4caf commit f20679c

File tree

7 files changed

+154
-38
lines changed

7 files changed

+154
-38
lines changed

.github/workflows/macos-workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: "macos kind CI workflow"
33

44
on:
55
push:
6-
branches: [ main ]
6+
branches: [ test ]
77
schedule:
88
# https://crontab.guru/
99
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows
10-
- cron: '0 0 * * FRI' ##execution of a task in the first minute of the month
10+
# - cron: '0 0 * * FRI' ##execution of a task in the first minute of the month
1111

1212

1313

.github/workflows/make-kind-wf.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "make kind CI workflow"
2+
3+
4+
on:
5+
push:
6+
branches: [ test ]
7+
schedule:
8+
# https://crontab.guru/
9+
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows
10+
# - cron: '0 0 * * FRI' ##execution of a task in the first minute of the month
11+
12+
13+
jobs:
14+
15+
16+
ubuntu-latest-kind-job:
17+
name: "make kind ubuntu-latest job"
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: "os fingerprinting"
22+
run: hostnamectl status
23+
- name: "deploy kind"
24+
run: sudo make deploy-kind
25+
26+
27+

.github/workflows/ubuntu-kind-workflow.yml

Lines changed: 62 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ name: "Ubuntu kind CI workflow"
33

44
on:
55
push:
6-
branches: [ main ]
6+
branches: [ test ]
77
schedule:
88
# https://crontab.guru/
99
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows
10-
- cron: '0 0 * * FRI' ##execution of a task in the first minute of the month
10+
# - cron: '0 0 * * FRI' ##execution of a task in the first minute of the month
11+
1112

1213
jobs:
1314

@@ -19,40 +20,67 @@ jobs:
1920
- uses: actions/checkout@v2
2021
- name: "os fingerprinting"
2122
run: hostnamectl status
22-
- name: "deploy kind"
23-
run: sudo make deploy-kind
24-
- name: "create cluster"
25-
run: sudo kind create cluster --config=app/kind-config.yaml
26-
- name: "kubectl cluster-info"
27-
run: sudo kubectl cluster-info --context kind-kind
23+
# https://kind.sigs.k8s.io/docs/user/quick-start/
24+
- name: "Installing From Release Binaries"
25+
run: |
26+
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64
27+
chmod +x ./kind
28+
mv ./kind /usr/local/bin/kind
29+
kind create cluster # Default cluster context name is `kind`.
30+
kind create cluster --name kind-2
31+
kind get clusters
32+
kubectl cluster-info --context kind-kind
33+
kubectl cluster-info --context kind-kind-2
34+
- name: "Installing From Release Binaries with cfg yaml"
35+
run: |
36+
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64
37+
chmod +x ./kind
38+
mv ./kind /usr/local/bin/kind
39+
kind create cluster --config /app/kind-example-config.yaml
40+
kind get clusters
41+
# kubectl cluster-info --context kind-kind
42+
# kubectl cluster-info --context kind-kind-2
43+
- name: "Installing From Release Binaries with cfg yaml multi controlplane"
44+
run: |
45+
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64
46+
chmod +x ./kind
47+
mv ./kind /usr/local/bin/kind
48+
kind create cluster --config /app/kind-example-config.yaml
49+
kind get clusters
50+
# kubectl cluster-info --context kind-kind
51+
# kubectl cluster-info --context kind-kind-2
52+
# - name: "create cluster"
53+
# run: sudo kind create cluster --config=app/kind-config.yaml
54+
# - name: "kubectl cluster-info"
55+
# run: sudo kubectl cluster-info --context kind-kind
2856

29-
ubuntu-2004-job:
30-
name: "ubuntu-20.04 minikube job"
31-
runs-on: ubuntu-20.04
32-
steps:
33-
- uses: actions/checkout@v2
34-
- name: "os fingerprinting"
35-
run: hostnamectl status
36-
- name: "deploy kind"
37-
run: sudo make deploy-kind
38-
- name: "create cluster"
39-
run: sudo kind create cluster --config=app/kind-config.yaml
40-
- name: "kubectl cluster-info"
41-
run: sudo kubectl cluster-info --context kind-kind
57+
# ubuntu-2004-job:
58+
# name: "ubuntu-20.04 minikube job"
59+
# runs-on: ubuntu-20.04
60+
# steps:
61+
# - uses: actions/checkout@v2
62+
# - name: "os fingerprinting"
63+
# run: hostnamectl status
64+
# - name: "deploy kind"
65+
# run: sudo make deploy-kind
66+
# - name: "create cluster"
67+
# run: sudo kind create cluster --config=app/kind-config.yaml
68+
# - name: "kubectl cluster-info"
69+
# run: sudo kubectl cluster-info --context kind-kind
4270

43-
ubuntu-1804-job:
44-
name: "ubuntu-18.04 minikube job"
45-
runs-on: ubuntu-18.04
46-
steps:
47-
- uses: actions/checkout@v2
48-
- name: "os fingerprinting"
49-
run: hostnamectl status
50-
- name: "deploy kind"
51-
run: sudo make deploy-kind
52-
- name: "create cluster"
53-
run: sudo kind create cluster --config=app/kind-config.yaml
54-
- name: "kubectl cluster-info"
55-
run: sudo kubectl cluster-info --context kind-kind
71+
# ubuntu-1804-job:
72+
# name: "ubuntu-18.04 minikube job"
73+
# runs-on: ubuntu-18.04
74+
# steps:
75+
# - uses: actions/checkout@v2
76+
# - name: "os fingerprinting"
77+
# run: hostnamectl status
78+
# - name: "deploy kind"
79+
# run: sudo make deploy-kind
80+
# - name: "create cluster"
81+
# run: sudo kind create cluster --config=app/kind-config.yaml
82+
# - name: "kubectl cluster-info"
83+
# run: sudo kubectl cluster-info --context kind-kind
5684

5785
#deprecated
5886
# ubuntu-1604-job:

.github/workflows/windows-workflow.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ name: "windows kind CI workflow"
33

44
on:
55
push:
6-
branches: [ main ]
6+
branches: [ test ]
77
schedule:
88
# https://crontab.guru/
99
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows
10-
- cron: '0 0 * * FRI' ##execution of a task in the first minute of the month
10+
# - cron: '0 0 * * FRI' ##execution of a task in the first minute of the month
11+
1112

1213

1314

app/kind-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# https://raw.githubusercontent.com/kubernetes-sigs/kind/main/site/content/docs/user/kind-example-config.yaml
12
kind: Cluster
23
apiVersion: kind.x-k8s.io/v1alpha4
34
nodes:

app/kind-example-config.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# this config file contains all config fields with comments
2+
# NOTE: this is not a particularly useful config file
3+
kind: Cluster
4+
apiVersion: kind.x-k8s.io/v1alpha4
5+
# patch the generated kubeadm config with some extra settings
6+
kubeadmConfigPatches:
7+
- |
8+
apiVersion: kubelet.config.k8s.io/v1beta1
9+
kind: KubeletConfiguration
10+
evictionHard:
11+
nodefs.available: "0%"
12+
# patch it further using a JSON 6902 patch
13+
kubeadmConfigPatchesJSON6902:
14+
- group: kubeadm.k8s.io
15+
version: v1beta2
16+
kind: ClusterConfiguration
17+
patch: |
18+
- op: add
19+
path: /apiServer/certSANs/-
20+
value: my-hostname
21+
# 1 control plane node and 3 workers
22+
nodes:
23+
# the control plane node config
24+
- role: control-plane
25+
# the three workers
26+
- role: worker
27+
- role: worker
28+
- role: worker
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# https://raw.githubusercontent.com/kubernetes-sigs/kind/main/site/content/docs/user/kind-example-config.yaml
2+
# this config file contains all config fields with comments
3+
# NOTE: this is not a particularly useful config file
4+
kind: Cluster
5+
apiVersion: kind.x-k8s.io/v1alpha4
6+
# patch the generated kubeadm config with some extra settings
7+
kubeadmConfigPatches:
8+
- |
9+
apiVersion: kubelet.config.k8s.io/v1beta1
10+
kind: KubeletConfiguration
11+
evictionHard:
12+
nodefs.available: "0%"
13+
# patch it further using a JSON 6902 patch
14+
kubeadmConfigPatchesJSON6902:
15+
- group: kubeadm.k8s.io
16+
version: v1beta2
17+
kind: ClusterConfiguration
18+
patch: |
19+
- op: add
20+
path: /apiServer/certSANs/-
21+
value: my-hostname
22+
# 1 control plane node and 3 workers
23+
nodes:
24+
# the control plane node config
25+
- role: control-plane
26+
- role: control-plane
27+
- role: control-plane
28+
# the three workers
29+
- role: worker
30+
- role: worker
31+
- role: worker

0 commit comments

Comments
 (0)