-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreatesecret.sh.template
41 lines (37 loc) · 1.28 KB
/
createsecret.sh.template
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
34
35
36
37
38
39
40
41
#!/bin/bash
kubectl create secret generic gnuu-secrets -n gnuu \
--from-literal=mysql_host='mysql' \
--from-literal=mysql_port=3306 \
--from-literal=mysql_user='xxxxx' \
--from-literal=mysql_backup_user='xxxxx' \
--from-literal=mysql_password='xxxx' \
--from-literal=mysql_backup_password='xxxx' \
--from-literal=mysql_db='xxxx' \
--from-literal=twilio_gateway_uri='api.twilio.com/xxxx' \
--from-literal=twilio_identifier='xxxxxx' \
--from-literal=twilio_from='+12345678' \
--from-literal=twilio_to='+12345678' \
--from-literal=DOCKERHOOK_TOKEN='xxxxx'
--from-literal=MATRIX_URL='https://matrix.org' \
--from-literal=MATRIX_ID='@xxxx:matrix.org' \
--from-literal=MATRIX_PW='xxxxxx' \
--from-literal=MATRIX_ROOM='!xxxxxx:matrix.org' \
--from-literal=API_KEY='xxxxxxxxxxxxxxxxx'
# matrixbot: create user account on matrix.org, invite and join the channel to post messages
cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Secret
metadata:
name: s3cfg
type: Opaque
stringData:
.s3cfg: |-
[default]
access_key = xxxxxxxxxxxxxxxxxx
bucket_location = eu-central-1
check_ssl_certificate = True
check_ssl_hostname = True
host_base = s3.hidrive.strato.com
host_bucket = %(bucket)s.s3.hidrive.strato.com
secret_key = xxxxxxxxxxxxxxxxxxxxxxx
EOF