Skip to content
Snippets Groups Projects
Commit acdb6226 authored by Mohamed, Fawzi Roberto (fawzi)'s avatar Mohamed, Fawzi Roberto (fawzi)
Browse files

support setup

parent 39274171
No related branches found
No related tags found
No related merge requests found
#pwds
kubeSupport/redis-session-db-pwd.txt
kubeSupport/redis-user-db-pwd.txt
# Logs
logs
*.log
......
existingSecret: redisSessionDbPass
rbac:
create: true
metrics:
enabled: true
master:
persistence:
enabled: false
apiVersion: v1
kind: PersistentVolume
metadata:
name: redis-user-db-volume
spec:
capacity:
storage: 16Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Recycle
hostPath:
path: /nomad/nomadlab/servers/labdev-nomad/prometheus/server-volume
type: Directory
apiVersion: v1
kind: PersistentVolume
metadata:
name: redis-user-db-volume
spec:
capacity:
storage: 16Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Recycle
hostPath:
path: /nomad/nomadlab/servers/labtest-nomad/prometheus/server-volume
type: Directory
apiVersion: v1
kind: PersistentVolume
metadata:
name: prometheus-server
spec:
capacity:
storage: 16Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Recycle
hostPath:
path: /nomad/nomadlab/servers/labdev-nomad/prometheus/server-volume
type: Directory
target_hostname=${target_hostname:-$HOSTNAME}
cat <<EOF
kubectl create secret generic redis-session-db-pwd --from-file=./redis-session-db-pwd.txt
helm install --name redis-session-db -f redis-session-db-values.yaml stable/redis
kubectl create secret generic redis-user-db-pwd --from-file=./redis-user-db-pwd.txt
kubectl apply -f redis-user-db-volume-$target_hostname.yaml
helm install --name redis-user-db -f redis-user-db-values.yaml stable/redis
EOF
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment