mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
32 lines
841 B
Bash
32 lines
841 B
Bash
![]() |
#!/usr/bin/env bash
|
||
|
|
||
|
# This scripts creates a kind cluster and verify it works
|
||
|
|
||
|
set -xe
|
||
|
|
||
|
# Install kind
|
||
|
wget https://github.com/kubernetes-sigs/kind/releases/download/v0.11.1/kind-linux-amd64
|
||
|
chmod +x kind-linux-amd64
|
||
|
mv ./kind-linux-amd64 /usr/bin/kind
|
||
|
kind --help
|
||
|
|
||
|
# Install kubectl
|
||
|
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
|
||
|
chmod +x kubectl
|
||
|
mv ./kubectl /usr/bin/kubectl
|
||
|
kubectl version --client
|
||
|
|
||
|
# Create the cluster
|
||
|
time kind create cluster --wait 120s --config ./ci/travis/kind.config.yaml
|
||
|
docker ps
|
||
|
|
||
|
# Now the kind node is running, it exposes port 6443 in the dind-daemon network.
|
||
|
kubectl config set clusters.kind-kind.server https://docker:6443
|
||
|
|
||
|
# Verify the kubectl works
|
||
|
kubectl version
|
||
|
kubectl cluster-info
|
||
|
kubectl get nodes
|
||
|
kubectl get pods --all-namespaces
|
||
|
|