-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (33 loc) · 2.47 KB
/
Makefile
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
kubectl:
export KUBECONFIG=/home/cluster-kubeconfig.yaml
kubectl config current-context
kubectl --kubeconfig=/home/cluster-kubeconfig.yaml get nodes
deploy-service:
kubectl apply -f kubernetes/volume/mariadb-configmap.yml --namespace=ingress-nginx
kubectl apply -f kubernetes/volume/nginx-configmap.yml --namespace=ingress-nginx
kubectl apply -f kubernetes/volume/wordpress-configmap.yml --namespace=ingress-nginx
kubectl apply -f kubernetes/volume/mariadb-volume.yml --namespace=ingress-nginx
kubectl apply -f kubernetes/volume/mariadb-secret.yml --namespace=ingress-nginx
kubectl apply -f kubernetes/volume/certificate-secret.yml --namespace=ingress-nginx
kubectl apply -f kubernetes/volume/prometheus.configmap.yml --namespace=ingress-nginx
deployment:
kubectl apply -f kubernetes/deployment/nginx-deployment.yml --namespace=ingress-nginx
kubectl apply -f kubernetes/deployment/mariadb-deployment.yml --namespace=ingress-nginx
kubectl apply -f kubernetes/deployment/wordpress-deployment.yml --namespace=ingress-nginx
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.3.0/deploy/static/provider/cloud/deploy.yaml
kubectl apply -f kubernetes/deployment/ingress-deployment.yml --namespace=ingress-nginx
kubectl apply -f kubernetes/deployment/prometheus-deployment.yml --namespace=ingress-nginx
delete:
kubectl delete -f kubernetes/deployment/nginx-deployment.yml --namespace=ingress-nginx
kubectl delete -f kubernetes/deployment/mariadb-deployment.yml --namespace=ingress-nginx
kubectl delete -f kubernetes/deployment/wordpress-deployment.yml --namespace=ingress-nginx
kubectl delete -f kubernetes/deployment/ingress-deployment.yml --namespace=ingress-nginx
kubectl delete -f kubernetes/volume/mariadb-configmap.yml --namespace=ingress-nginx
kubectl delete -f kubernetes/volume/nginx-configmap.yml --namespace=ingress-nginx
kubectl delete -f kubernetes/volume/wordpress-configmap.yml --namespace=ingress-nginx
kubectl delete -f kubernetes/volume/mariadb-secret.yml --namespace=ingress-nginx
kubectl delete -f kubernetes/volume/mariadb-volume.yml --namespace=ingress-nginx
kubectl delete deployment ingress-nginx-controller --namespace=ingress-nginx
kubectl delete -f kubernetes/volume/certificate-secret.yml --namespace=ingress-nginx
kubectl delete -f kubernetes/volume/prometheus.configmap.yml --namespace=ingress-nginx
kubectl delete -f kubernetes/deployment/prometheus-deployment.yml --namespace=ingress-nginx