forked from kubernetes-retired/multi-tenancy
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (25 loc) · 944 Bytes
/
create-cluster.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Create Cluster
on: [pull_request, push]
jobs:
create-cluster:
strategy:
matrix:
kubernetes-version:
- kindest/node:v1.19.1@sha256:98cf5288864662e37115e362b23e4369c8c4a408f99cbc06e58ac30ddc721600
- kindest/node:v1.18.8@sha256:f4bcc97a0ad6e7abaf3f643d890add7efe6ee4ab90baeb374b4f41a4c95567eb
- kindest/node:v1.17.11@sha256:5240a7a2c34bf241afb54ac05669f8a46661912eab05705d660971eeb12f6555
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Create k8s Kind Cluster
uses: helm/kind-action@v1.0.0
with:
node_image: ${{ matrix.kubernetes-version }}
- name: Testing
run: |
kubectl version
kubectl get nodes
kubectl cluster-info
kubectl get pods -n kube-system
echo "current-context:" $(kubectl config current-context)
echo "environment-kubeconfig:" ${KUBECONFIG}