25 lines
1.3 KiB
Bash
25 lines
1.3 KiB
Bash
#!/bin/bash
|
|
|
|
git clone https://github.com/kubernetes-incubator/metrics-server.git
|
|
sed -i '34i\ command:\' metrics-server/deploy/1.8+/metrics-server-deployment.yaml
|
|
sed -i '35i\ - /metrics-server\' metrics-server/deploy/1.8+/metrics-server-deployment.yaml
|
|
sed -i '36i\ - --kubelet-insecure-tls\' metrics-server/deploy/1.8+/metrics-server-deployment.yaml
|
|
kubectl create -f metrics-server/deploy/1.8+/
|
|
|
|
RELEASE=$(curl -s https://api.github.com/repos/kubeless/kubeless/releases/latest | grep tag_name | cut -d '"' -f 4)
|
|
kubectl create ns kubeless
|
|
kubectl create -f https://github.com/kubeless/kubeless/releases/download/$RELEASE/kubeless-$RELEASE.yaml
|
|
#kubectl create -f https://github.com/kubeless/kubeless/releases/download/$RELEASE/kubeless-non-rbac-$RELEASE.yaml
|
|
|
|
apt install -y unzip
|
|
|
|
#kubeless command
|
|
OS=$(uname -s| tr '[:upper:]' '[:lower:]')
|
|
curl -OL https://github.com/kubeless/kubeless/releases/download/$RELEASE/kubeless_$OS-amd64.zip && \
|
|
unzip kubeless_$OS-amd64.zip && \
|
|
sudo mv bundles/kubeless_$OS-amd64/kubeless /usr/local/bin/
|
|
|
|
#Ingress nginx
|
|
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/mandatory.yaml
|
|
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/provider/baremetal/service-nodeport.yaml
|