@@ -55,6 +55,69 @@ docker run -p 127.0.0.1:8888:8888 ${CONTAINER_REGISTRY}.azurecr.io/config
55
55
# install kubectl
56
56
# https://kubernetes.io/docs/tasks/tools/install-kubectl/
57
57
58
+ cd kubernetes
59
+
60
+ # deploy secrets
61
+ envsubst < 0-secrets.yaml > deploy/0-secrets.yaml
62
+ kubectl apply -f deploy/0-secrets.yaml
63
+
64
+ # deploy config
65
+ envsubst < 1-config.yaml > deploy/1-config.yaml
66
+ kubectl apply -f deploy/1-config.yaml
67
+
68
+ # deploy registry
69
+ envsubst < 2-registry.yaml > deploy/2-registry.yaml
70
+ kubectl apply -f deploy/2-registry.yaml
71
+
72
+ # deploy gateway
73
+ envsubst < 3-gateway.yaml > deploy/3-gateway.yaml
74
+ kubectl apply -f deploy/3-gateway.yaml
75
+
76
+ # deploy auth-service
77
+ envsubst < 4-auth-service.yaml > deploy/4-auth-service.yaml
78
+ kubectl apply -f deploy/4-auth-service.yaml
79
+
80
+ # deploy account-service
81
+ envsubst < 5-account-service.yaml > deploy.5-account-service.yaml
82
+ kubectl apply -f deploy/5-account-service.yaml
83
+
84
+ # deploy statistics-service
85
+ envsubst < 6-statistics-service.yaml > deploy/6-statistics-service.yaml
86
+ kubeclt apply -f deploy/6-statistics-service.yaml
87
+
88
+ # deploy notification-service
89
+ envsubst < 7-notification-service.yaml > deploy/7-notification-service.yaml
90
+ kubectl apply -f deploy/7-notification-service.yaml
91
+
92
+ # look up
93
+ bash-3.2$ kubectl get services
94
+ NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
95
+ account-service ClusterIP 10.0.114.121 < none> 6000/TCP 7m18s
96
+ auth-service ClusterIP 10.0.85.141 < none> 5000/TCP 9m12s
97
+ config LoadBalancer 10.0.205.56 52.143.85.191 8888:31213/TCP 4h23m
98
+ gateway LoadBalancer 10.0.189.35 51.143.122.223 80:32508/TCP 12m
99
+ kubernetes ClusterIP 10.0.0.1 < none> 443/TCP 49d
100
+ notification-service ClusterIP 10.0.195.170 < none> 8000/TCP 3m58s
101
+ registry LoadBalancer 10.0.218.238 52.137.101.136 8761:30758/TCP 4h16m
102
+ statistics-service ClusterIP 10.0.179.87 < none> 7000/TCP 5m4s
103
+
104
+
105
+ # few additional commands
106
+
107
+ kubectl get pods
108
+ kubectl get services
109
+ kubectl get svc gateway
110
+ kubectl delete pod [pod-name]
111
+ kubectl delete deployment [deployment-name]
112
+ kubectl delete service [service-name]
113
+ kubectl get secret piggymetrics -o yaml
114
+
115
+ http://.../actuator
116
+
117
+ # https://codefresh.io/kubernetes-tutorial/kubernetes-cheat-sheet/
118
+
119
+ # ========= old stuff =================
120
+
58
121
# install kompose
59
122
# https://kubernetes.io/docs/tasks/configure-pod-container/translate-compose-kubernetes/
60
123
@@ -75,28 +138,10 @@ kubectl apply -f statistics-service-service.yaml
75
138
kubectl apply -f notification-service-deployment.yaml
76
139
kubectl apply -f notification-service-service.yaml
77
140
78
- bash-3.2$ kubectl get services
79
- NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
80
- account-service ClusterIP 10.0.195.104 < none> 6000/TCP 4m13s
81
- auth-service ClusterIP 10.0.131.170 < none> 5000/TCP 3m35s
82
- config LoadBalancer 10.0.49.222 51.143.107.33 8888:31212/TCP 6m28s
83
- gateway LoadBalancer 10.0.208.189 40.91.122.33 80:32131/TCP 5m
84
- kubernetes ClusterIP 10.0.0.1 < none> 443/TCP 48d
85
- notification-service ClusterIP 10.0.60.69 < none> 8000/TCP 3m2s
86
- registry LoadBalancer 10.0.122.108 52.143.74.122 8761:32475/TCP 5m31s
87
- statistics-service ClusterIP 10.0.232.183 < none> 7000/TCP 3m17s
88
141
89
142
90
- # few additional commands
91
143
92
- kubectl get pods
93
- kubectl get services
94
- kubectl get svc gateway
95
- kubectl delete pod [pod-name]
96
144
97
- http://.../actuator
98
-
99
- # https://codefresh.io/kubernetes-tutorial/kubernetes-cheat-sheet/
100
145
101
146
102
147
# Azure Monitor - Kusto Query
@@ -147,4 +192,5 @@ LAST DEPLOYED: Mon Dec 2 08:46:25 2019
147
192
NAMESPACE: default
148
193
STATUS: deployed
149
194
REVISION: 1
150
- TEST SUITE: None
195
+ TEST SUITE: None
196
+
0 commit comments