initial
This commit is contained in:
22
deploy.sh
Executable file
22
deploy.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
NAMESPACE=cacti
|
||||
|
||||
kubectl create namespace $NAMESPACE \
|
||||
--dry-run=client \
|
||||
-o yaml | \
|
||||
kubectl -f - apply
|
||||
|
||||
kubectl create secret generic mariadb-secrets \
|
||||
--dry-run=client \
|
||||
-o yaml \
|
||||
--save-config \
|
||||
--from-literal=MARIADB_USER=cacti \
|
||||
--from-literal=MARIADB_DATABASE=cacti \
|
||||
--from-literal=MARIADB_PASSWORD=test123 \
|
||||
--from-literal=MARIADB_ROOT_PASSWORD=test1234 | \
|
||||
kubectl apply -n $NAMESPACE -f -
|
||||
|
||||
|
||||
kubectl apply -f mariadb.yml -n $NAMESPACE
|
||||
|
||||
Reference in New Issue
Block a user