-
Notifications
You must be signed in to change notification settings - Fork 96
/
Copy pathapply_k8s_files.sh
executable file
·45 lines (40 loc) · 1.62 KB
/
apply_k8s_files.sh
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
43
44
45
#!/bin/bash
# Change directory to the k8s folder
cd k8s
# Apply the namespace
kubectl apply -f namespace-bitloops.yaml
# Apply ConfigMaps, Secrets, and Persistent Volume Claims
kubectl apply -f configmap-bl-grafana-config.yaml
kubectl apply -f secret-bl-postgres-secret.yaml
kubectl apply -f pvc-bl-mongo-data.yaml
kubectl apply -f pvc-bl-nats-data.yaml
kubectl apply -f pvc-bl-postgres-data.yaml
kubectl apply -f pvc-bl-prometheus-data.yaml
kubectl apply -f pvc-bl-grafana-data.yaml
# Apply Deployments and Services
kubectl apply -f deployment-todo-frontend.yaml
kubectl apply -f service-todo-frontend.yaml
kubectl apply -f deployment-todo-backend.yaml
kubectl apply -f service-todo-backend.yaml
kubectl apply -f deployment-bl-mongo.yaml
kubectl apply -f service-bl-mongo.yaml
kubectl apply -f deployment-bl-nats.yaml
kubectl apply -f service-bl-nats.yaml
kubectl apply -f deployment-bl-postgres.yaml
kubectl apply -f service-bl-postgres.yaml
kubectl apply -f deployment-bl-prometheus-nats-exporter.yaml
kubectl apply -f service-bl-prometheus-nats-exporter.yaml
kubectl apply -f deployment-bl-jaeger.yaml
kubectl apply -f service-bl-jaeger.yaml
kubectl apply -f deployment-bl-pushgateway.yaml
kubectl apply -f service-bl-pushgateway.yaml
kubectl apply -f deployment-bl-prometheus.yaml
kubectl apply -f service-bl-prometheus.yaml
kubectl apply -f deployment-bl-grafana.yaml
kubectl apply -f service-bl-grafana.yaml
kubectl apply -f deployment-bl-envoy.yaml
kubectl apply -f service-bl-envoy.yaml
kubectl apply -f deployment-bl-telemetry-consumer.yaml
kubectl apply -f service-bl-telemetry-consumer.yaml
# Change back to the original directory
cd ..