Skip to content

Commit

Permalink
fix(autok3s): add CATTLE_PROMETHEUS_METRICS to rancher setup scripts …
Browse files Browse the repository at this point in the history
…[CI SKIP]
  • Loading branch information
niusmallnan committed Jun 10, 2022
1 parent 735f67e commit 743a2e2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions assets/rancher-setup/pandaria-l4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ helm install rancher pandaria/rancher \
--set ingress.enabled=false \
--set ingress.tls.source=rancher \
--set bootstrapPassword=Rancher@123456 \
--set extraEnv[0].name=CATTLE_PROMETHEUS_METRICS \
--set-string extraEnv[0].value=true \
--version $PANDARIA_VERSION

kubectl create -f - <<EOF
Expand Down
2 changes: 2 additions & 0 deletions assets/rancher-setup/pandaria-l7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ helm install rancher pandaria/rancher \
--set hostname=$ec2_ip.sslip.io \
--set replicas=1 \
--set bootstrapPassword=Rancher@123456 \
--set extraEnv[0].name=CATTLE_PROMETHEUS_METRICS \
--set-string extraEnv[0].value=true \
--version $PANDARIA_VERSION
4 changes: 3 additions & 1 deletion assets/rancher-setup/rancher-l4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ helm install rancher rancher-latest/rancher \
--set replicas=1 \
--set ingress.enabled=false \
--set ingress.tls.source=rancher \
--set bootstrapPassword=Rancher@123456
--set bootstrapPassword=Rancher@123456 \
--set extraEnv[0].name=CATTLE_PROMETHEUS_METRICS \
--set-string extraEnv[0].value=true

kubectl create -f - <<EOF
apiVersion: v1
Expand Down
4 changes: 3 additions & 1 deletion assets/rancher-setup/rancher-l7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ helm install rancher rancher-latest/rancher \
--namespace cattle-system \
--set hostname=$ec2_ip.sslip.io \
--set replicas=1 \
--set bootstrapPassword=Rancher@123456
--set bootstrapPassword=Rancher@123456 \
--set extraEnv[0].name=CATTLE_PROMETHEUS_METRICS \
--set-string extraEnv[0].value=true

0 comments on commit 743a2e2

Please sign in to comment.