forked from openemr/openemr-devops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkub-up
42 lines (39 loc) · 1.36 KB
/
kub-up
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
42
#!/bin/sh
# first bring in cert-manager and allow enough time for it to set up
kubectl apply --validate=false -f https://github.com/cert-manager/cert-manager/releases/download/v1.11.0/cert-manager.yaml
echo "...waiting a minute to allow cert-manager to set up..."
sleep 60
kubectl apply \
-f certs/selfsigned-issuer.yaml \
-f certs/ca-certificate.yaml \
-f certs/ca-issuer.yaml \
-f certs/mysql.yaml \
-f certs/mysql-replication.yaml \
-f certs/mysql-openemr-client.yaml \
-f certs/phpmyadmin.yaml \
-f certs/mysql-phpmyadmin-client.yaml
echo "...waiting 15 seconds to ensure certs are created..."
sleep 15
kubectl apply \
-f mysql/configmap.yaml \
-f mysql/secret.yaml \
-f mysql/service.yaml \
-f mysql/statefulset.yaml \
-f redis/configmap-main.yaml \
-f redis/configmap-acl.yaml \
-f redis/configmap-pipy.yaml \
-f redis/statefulset-redis.yaml \
-f redis/statefulset-sentinel.yaml \
-f redis/deployment-redisproxy.yaml \
-f redis/service-redis.yaml \
-f redis/service-sentinel.yaml \
-f redis/service-redisproxy.yaml \
-f phpmyadmin/configmap.yaml \
-f phpmyadmin/deployment.yaml \
-f phpmyadmin/service.yaml \
-f volumes/letsencrypt.yaml \
-f volumes/ssl.yaml \
-f volumes/website.yaml \
-f openemr/secret.yaml \
-f openemr/deployment.yaml \
-f openemr/service.yaml