Created
August 21, 2021 23:39
-
-
Save rcarrata/bb80e8b3f88f418d7ba62a335447502c to your computer and use it in GitHub Desktop.
Kind in Centos8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install utils | |
sudo yum -y install wget yum-utils bash-completion vim | |
# Install Docker | |
sudo yum-config-manager \ | |
--add-repo \ | |
https://download.docker.com/linux/centos/docker-ce.repo | |
sudo yum remove -y podman | |
sudo yum install docker-ce docker-ce-cli containerd.io -y | |
sudo systemctl start docker | |
sudo systemctl enable docker | |
# Install Kind | |
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-darwin-amd64 | |
chmod +x ./kind | |
mv ./kind /usr/bin/kind | |
cat <<EOF | kind create cluster --config=- | |
kind: Cluster | |
apiVersion: kind.x-k8s.io/v1alpha4 | |
nodes: | |
- role: control-plane | |
kubeadmConfigPatches: | |
- | | |
kind: InitConfiguration | |
nodeRegistration: | |
kubeletExtraArgs: | |
node-labels: "ingress-ready=true" | |
extraPortMappings: | |
- containerPort: 80 | |
hostPort: 80 | |
protocol: TCP | |
- containerPort: 443 | |
hostPort: 443 | |
protocol: TCP | |
EOF | |
# 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 | |
# Install Ambassador Ingress | |
kubectl apply -f https://github.com/datawire/ambassador-operator/releases/latest/download/ambassador-operator-crds.yaml | |
kubectl apply -n ambassador -f https://github.com/datawire/ambassador-operator/releases/latest/download/ambassador-operator-kind.yaml | |
kubectl wait --timeout=180s -n ambassador --for=condition=deployed ambassadorinstallations/ambassador | |
kubectl annotate ingress example-ingress kubernetes.io/ingress.class=ambassador | |
# Install Helm | |
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash | |
echo "export PATH=$PATH:/usr/local/bin" >> ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment