Skip to content

Commit

Permalink
Test with multiple nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Pazdziora committed Dec 18, 2024
1 parent 7d06a5c commit 9af5685
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/run-kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ jobs:
if: ${{ failure() }}
- run: $podman exec kind kubectl cluster-info --context kind-kind
- run: $podman exec -ti kind kubectl wait --for=condition=ready -n kube-system pod/etcd-kind-control-plane pod/kube-apiserver-kind-control-plane --timeout=60s
- run: $podman exec kind kubectl get nodes -o jsonpath='{.items[*].metadata.name}' | xargs $podman exec kind kubectl wait --for=condition=ready node
- run: $podman exec kind kubectl get nodes
- run: $podman exec kind kubectl get all -A
- run: |
$podman exec kind curl -sk https://127.0.0.1:6443/ | tee /dev/stderr | grep -q 'forbidden: User \\"system:anonymous\\" cannot get path'
Expand Down Expand Up @@ -97,13 +99,16 @@ jobs:
- run: kubectl apply -f - < kind-cluster-pod-k3s.yaml
- run: while ! kubectl get pod/kind-cluster -o jsonpath="{.status.initContainerStatuses[0].state['running','terminated'].startedAt}" | grep . ; do kubectl get pod/kind-cluster ; sleep 5 ; done
- run: kubectl logs -f pod/kind-cluster -c create-cluster
- run: kubectl describe pod/kind-cluster
- run: kubectl get pod/kind-cluster -o jsonpath="{.status.initContainerStatuses[0].state['terminated'].exitCode}" | grep ^0$
- run: while ! kubectl get pod/kind-cluster -o jsonpath="{.status.containerStatuses[0].state['running','terminated'].startedAt}" | grep . ; do kubectl get pod/kind-cluster ; sleep 5 ; done
- run: kubectl logs pod/kind-cluster
- run: kubectl get pod/kind-cluster
- run: kubectl describe pod/kind-cluster
- run: kubectl exec pod/kind-cluster -- podman ps -a
- run: while ! kubectl exec pod/kind-cluster -- curl -ks https://127.0.0.1:6443/ ; do sleep 1 ; done
- run: kubectl exec pod/kind-cluster -- kubectl get nodes -o jsonpath='{.items[*].metadata.name}' | xargs kubectl exec pod/kind-cluster -- kubectl wait --for=condition=ready node
- run: kubectl exec pod/kind-cluster -- kubectl get nodes
- run: kubectl exec pod/kind-cluster -- kubectl get all -A

- run: kubectl exec pod/kind-cluster -- kubectl create serviceaccount -n default admin
Expand Down
7 changes: 7 additions & 0 deletions kind-cluster-rootless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ nodes:
nodeRegistration:
kubeletExtraArgs:
feature-gates: KubeletInUserNamespace=true
- role: worker
kubeadmConfigPatches:
- |
kind: JoinConfiguration
nodeRegistration:
kubeletExtraArgs:
feature-gates: KubeletInUserNamespace=true
networking:
apiServerPort: 6443
# apiServerAddress: 0.0.0.0
Expand Down
1 change: 1 addition & 0 deletions kind-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
networking:
apiServerPort: 6443
# apiServerAddress: 0.0.0.0
Expand Down

0 comments on commit 9af5685

Please sign in to comment.