-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommand.txt
More file actions
48 lines (26 loc) · 1.07 KB
/
Command.txt
File metadata and controls
48 lines (26 loc) · 1.07 KB
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
46
47
48
#!/bin/sh
helm3 repo add bitnami https://charts.bitnami.com/bitnami
helm3 install -f ./minio-config.yaml -n minio-ns --create-namespace minio-proj bitnami/minio
sleep 10
kubectl port-forward --namespace minio-ns svc/minio-proj 9000:9000 &
kubectl port-forward --namespace minio-ns svc/minio-proj 9001:9001 &
kubectl port-forward svc/redis 6379:6379 &
kubectl delete deployment rest-server-deployment
kubectl apply -f rest-deployment.yaml
kubectl apply -f rest-service.yaml
kubectl port-forward --address 0.0.0.0 service/rest-server-service 5000:5000 &
kubectl delete deployment worker
kubectl apply -f worker-deployment.yaml
kubectl get pods --namespace <namespace-name>
kubectl logs <pod>
kubectl get pods --all-namespaces
kubectl describe pod <pod name>
kubectl delete all --all --all-namespaces
kubectl get services --all-namespaces
ps aux | grep "kube"
kubectl exec -it <pod> -- /bin/sh
helm list -n minio-ns
helm uninstall minio-proj -n minio-ns
kubectl exec -it postgres-deployment-67fb68fc4b-phcd8 -- psql -U postgres -d yourdatabase
\dt
drop table transactions;