oruchkin / Async_API_sprint_3

AsyncAPI Спринт 3
1 stars 1 forks source link

Add k8s settings #125

Closed GDreyV closed 1 week ago

GDreyV commented 1 week ago

Добавил конфигурации сервисов для деплоя в minikube.

Шаги:

  1. Заполнить secrets.yaml из шаблона secrelts.yaml.template
  2. Активировать ingress minikube addons enable ingress
  3. Собрать все образы, используя k8s-windows-build.cmd
  4. Применить конфигурации kubectl apply -f ./k8s
  5. Настроить hosts (см README)
  6. Запустить туннель minikube tunnel

Хосты должны открываться в браузере

image

Resolves https://github.com/oruchkin/Async_API_sprint_3/issues/126

GDreyV commented 1 week ago
\Async_API_sprint_3\infra>kubectl get all
NAME                                            READY   STATUS      RESTARTS       AGE
pod/admin-deployment-56ff6d9654-n77hp           2/2     Running     4 (5h9m ago)   16h
pod/api-deployment-7797d8c888-6g6q5             2/2     Running     0              109m
pod/elasticsearch-statefulset-0                 1/1     Running     3 (5h8m ago)   22h
pod/etl-deployment-557bb48d57-5mnc6             1/1     Running     4 (154m ago)   5h33m
pod/fileapi-deployment-7474bcc67-7jsqz          1/1     Running     1 (5h9m ago)   5h18m
pod/idp-deployment-79df77f764-ndvl9             2/2     Running     0              76m
pod/jaeger-deployment-58c6565cfb-qfb6t          1/1     Running     3 (5h9m ago)   26h
pod/keycloak-deployment-b8c8d58d8-jr8sd         1/1     Running     1 (5h9m ago)   5h15m
pod/mailhog-deployment-76cbb9d5bc-d8pv5         1/1     Running     3 (5h9m ago)   26h
pod/minio-statefulset-0                         1/1     Running     3 (5h9m ago)   26h
pod/mongo-statefulset-0                         1/1     Running     3 (5h9m ago)   26h
pod/notifications-deployment-5cbb7bdf94-f76c7   1/1     Running     0              79s
pod/pginit-job-4m4c6                            0/1     Completed   0              17h
pod/postgres-statefulset-0                      1/1     Running     2 (5h9m ago)   17h
pod/rabbitmq-statefulset-0                      1/1     Running     3 (5h9m ago)   26h
pod/redis-statefulset-0                         1/1     Running     3 (5h9m ago)   26h

NAME                            TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)                       AGE
service/admin-service           ClusterIP   10.110.76.91     <none>        80/TCP                        16h
service/api-service             ClusterIP   10.104.104.130   <none>        80/TCP                        107m
service/elasticsearch-service   ClusterIP   None             <none>        <none>                        26h
service/fileapi-service         ClusterIP   10.106.176.128   <none>        8000/TCP                      107m
service/idp-service             ClusterIP   10.109.100.49    <none>        80/TCP,50051/TCP              86m
service/jaeger-service          ClusterIP   10.110.169.252   <none>        6831/TCP,6831/UDP,16686/TCP   26h
service/keycloak-service        ClusterIP   10.107.95.0      <none>        8080/TCP                      26h
service/kubernetes              ClusterIP   10.96.0.1        <none>        443/TCP                       26h
service/mailhog-service         ClusterIP   10.100.89.51     <none>        8025/TCP,1025/TCP             26h
service/minio-service           ClusterIP   None             <none>        <none>                        26h
service/mongo-service           ClusterIP   None             <none>        <none>                        26h
service/notifications-service   ClusterIP   10.106.217.64    <none>        8000/TCP,8765/TCP             23m
service/postgres-service        ClusterIP   10.108.40.249    <none>        5432/TCP                      25h
service/rabbitmq-service        ClusterIP   None             <none>        <none>                        26h
service/redis-service           ClusterIP   None             <none>        <none>                        26h

NAME                                       READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/admin-deployment           1/1     1            1           16h
deployment.apps/api-deployment             1/1     1            1           109m
deployment.apps/etl-deployment             1/1     1            1           5h33m
deployment.apps/fileapi-deployment         1/1     1            1           5h18m
deployment.apps/idp-deployment             1/1     1            1           76m
deployment.apps/jaeger-deployment          1/1     1            1           26h
deployment.apps/keycloak-deployment        1/1     1            1           5h15m
deployment.apps/mailhog-deployment         1/1     1            1           26h
deployment.apps/notifications-deployment   1/1     1            1           79s

NAME                                                  DESIRED   CURRENT   READY   AGE
replicaset.apps/admin-deployment-56ff6d9654           1         1         1       16h
replicaset.apps/api-deployment-7797d8c888             1         1         1       109m
replicaset.apps/etl-deployment-557bb48d57             1         1         1       5h33m
replicaset.apps/fileapi-deployment-7474bcc67          1         1         1       5h18m
replicaset.apps/idp-deployment-79df77f764             1         1         1       76m
replicaset.apps/jaeger-deployment-58c6565cfb          1         1         1       26h
replicaset.apps/jaeger-deployment-5dff699759          0         0         0       26h
replicaset.apps/jaeger-deployment-676688f9cb          0         0         0       26h
replicaset.apps/keycloak-deployment-b8c8d58d8         1         1         1       5h15m
replicaset.apps/mailhog-deployment-76cbb9d5bc         1         1         1       26h
replicaset.apps/notifications-deployment-5cbb7bdf94   1         1         1       79s

NAME                                         READY   AGE
statefulset.apps/elasticsearch-statefulset   1/1     22h
statefulset.apps/minio-statefulset           1/1     26h
statefulset.apps/mongo-statefulset           1/1     26h
statefulset.apps/postgres-statefulset        1/1     17h
statefulset.apps/rabbitmq-statefulset        1/1     26h
statefulset.apps/redis-statefulset           1/1     26h

NAME                   STATUS     COMPLETIONS   DURATION   AGE
job.batch/pginit-job   Complete   1/1           5s         17h
oruchkin commented 1 week ago

lgtm 👍