forked from swisscom/kubeone-dcs-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathingress-nginx.sh
More file actions
executable file
·33 lines (31 loc) · 813 Bytes
/
Copy pathingress-nginx.sh
File metadata and controls
executable file
·33 lines (31 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
set -e
set -u
set -o pipefail
if [[ "$(basename ${PWD})" == "deployments" ]]; then
cd ..
fi
# chart source: https://github.com/kubernetes/ingress-nginx
repository="https://kubernetes.github.io/ingress-nginx"
chart="ingress-nginx"
version="4.7.1"
namespace="${chart}"
external_ip=$(cat terraform/output.json | jq -r .external_ip.value)
cat > "deployments/${chart}.values.yaml" <<EOF
controller:
metrics:
enabled: true
service:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "10254"
externalIPs:
- ${external_ip}
type: NodePort
nodePorts:
http: "30080"
https: "30443"
ingressClassResource:
default: true
EOF
deployments/install-chart.sh "${repository}" "${chart}" "${namespace}" "${version}" "deployments/${chart}.values.yaml"