mirror of
https://github.com/wahyd4/home-docker.git
synced 2026-08-09 04:15:52 +10:00
45 lines
1.3 KiB
Bash
Executable File
45 lines
1.3 KiB
Bash
Executable File
#! /bin/bash -eu
|
|
|
|
helm upgrade --install ingress bitnami/nginx-ingress-controller -n nginx-ingress -f nginx-values.yaml
|
|
|
|
## install nginx ingress controller grafana dashboards
|
|
# https://github.com/kubernetes/ingress-nginx/tree/master/deploy/grafana/dashboards
|
|
|
|
k apply -f prometheus-pv.yml -n default
|
|
|
|
helm upgrade --install prometheus -n default -f prometheus-values.yaml stable/prometheus-operator
|
|
|
|
helm apply -f prometheus-ingress.yaml
|
|
|
|
kubectl -n default create secret generic oauth2-proxy-creds \
|
|
--from-literal=cookie-secret=ZuThURd/AK9ouHNxg0Czhg== \
|
|
--from-literal=client-id=4f46385b435275c693ec \
|
|
--from-literal=client-secret=518d5b4693aaaee3e62ce5b8d9da6ec5cc160098
|
|
|
|
helm upgrade oauth2-proxy --install stable/oauth2-proxy \
|
|
--reuse-values \
|
|
--values oauth2-proxy-config.yaml
|
|
|
|
k apply -f postgres-pv.yaml
|
|
|
|
helm upgrade --install postgres -n db -f postgres-values.yaml bitnami/postgresql
|
|
|
|
# media applications
|
|
|
|
k apply -f media.yaml
|
|
|
|
|
|
# influxdb
|
|
|
|
|
|
helm upgrade --install influxdb bitnami/influxdb --namespace db \
|
|
--set adminUser.name=junv \
|
|
--set adminUser.pwd=Lovewifi2020! \
|
|
--set persistence.storageClass=manual \
|
|
--set persistence.existingClaim=influxdb \
|
|
--set influxdb.securityContext.fsGroup=1000 \
|
|
--set influxdb.securityContext.runAsUser=1000
|
|
|
|
# metabase
|
|
k apply -f metabase.yaml -n home-apps
|