roles/k3s/files: update

This commit is contained in:
Haitao Pan 2023-03-24 10:05:37 +08:00
parent df730770b7
commit 2f347a468e
3 changed files with 13 additions and 14 deletions

View File

@ -19,8 +19,7 @@ alibabacloud:
zoneType: public
EOF
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
sudo helm repo add bitnami https://charts.bitnami.com/bitnami || echo true
sudo helm repo update
sudo kubectl create namespace external-dns || echo true
sudo helm upgrade --install external-dns -f external-dns-values.yaml bitnami/external-dns -n external-dns
helm repo add bitnami https://charts.bitnami.com/bitnami || echo true
helm repo update
kubectl create namespace external-dns || echo true
helm upgrade --install external-dns -f external-dns-values.yaml bitnami/external-dns -n external-dns

View File

@ -41,9 +41,9 @@ spec:
targetPort: 443
EOF
sudo helm repo add nginx-stable https://helm.nginx.com/stable || echo true
sudo helm repo up
sudo kubectl create namespace ingress || echo true
sudo helm upgrade --install nginx nginx-stable/nginx-ingress --version=0.15.0 --namespace ingress -f value.yaml
sudo kubectl apply -f nginx-cm.yaml
sudo kubectl patch svc nginx-nginx-ingress -n ingress --patch-file nginx-svc-patch.yaml
helm repo add nginx-stable https://helm.nginx.com/stable || echo true
helm repo up
kubectl create namespace ingress || echo true
helm upgrade --install nginx nginx-stable/nginx-ingress --version=0.15.0 --namespace ingress -f value.yaml
kubectl apply -f nginx-cm.yaml
kubectl patch svc nginx-nginx-ingress -n ingress --patch-file nginx-svc-patch.yaml

View File

@ -6,8 +6,8 @@ curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.24.7+k3s1 sh -s - \
--data-dir=/opt/rancher/k3s \
--kube-apiserver-arg service-node-port-range=0-50000
#export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
sudo wget --no-check-certificate https://mirrors.onwalk.net/tools/linux-amd64/helm.tar.gz && sudo tar -xvpf helm.tar.gz -C /usr/local/bin/
sudo chmod 755 /usr/local/bin/helm
sudo helm repo add artifact https://artifact.onwalk.net/chartrepo/k8s/ | echo true
sudo helm repo up
helm repo add artifact https://artifact.onwalk.net/chartrepo/k8s/ | echo true
helm repo up