12 Commits

Author SHA1 Message Date
sailor 7c2e6b6ecc add docs and config in container, refactor dockerfile and pipline
Docker Build and Push / need-build (push) Successful in 3s
Docker Build and Push / need-deploy (push) Successful in 3s
Docker Build and Push / build (push) Successful in 17s
Docker Build and Push / deploy (push) Has been skipped
Reviewed-on: #16
2026-07-11 17:58:19 +03:00
sailor 9b5aec1c96 Merge pull request 'fix job more' (#11) from builder-local into main
Docker Build and Push / need-build (push) Successful in 3s
Docker Build and Push / need-deploy (push) Successful in 3s
Docker Build and Push / build (push) Has been skipped
Docker Build and Push / deploy (push) Successful in 18s
Reviewed-on: #11
2026-07-10 22:33:48 +03:00
sailor 1cfe24037c fix deploy again
Docker Build and Push / need-build (push) Successful in 3s
Docker Build and Push / need-deploy (push) Successful in 3s
Docker Build and Push / build (push) Has been skipped
Docker Build and Push / deploy (push) Has been skipped
Reviewed-on: #10
2026-07-10 22:28:10 +03:00
sailor 958dcab3fa Merge pull request 'test deploy' (#9) from builder-local into main
Docker Build and Push / need-build (push) Successful in 3s
Docker Build and Push / need-deploy (push) Successful in 3s
Docker Build and Push / build (push) Has been skipped
Docker Build and Push / deploy (push) Has been skipped
Reviewed-on: #9
2026-07-10 22:23:13 +03:00
sailor 5f2ba688e9 fix need deploy
Docker Build and Push / need-build (push) Successful in 3s
Docker Build and Push / need-deploy (push) Successful in 3s
Docker Build and Push / build (push) Has been skipped
Docker Build and Push / deploy (push) Has been skipped
Reviewed-on: #8
2026-07-10 22:18:36 +03:00
sailor 5d64ae8732 ci and schemas
Docker Build and Push / need-build (push) Successful in 4s
Docker Build and Push / need-deploy (push) Successful in 3s
Docker Build and Push / build (push) Successful in 13s
Docker Build and Push / deploy (push) Has been skipped
Reviewed-on: #7
2026-07-10 22:17:01 +03:00
sailor 348a9bbe73 add compose and add ci filter
Docker Build and Push / check-changes (push) Successful in 16s
Docker Build and Push / build (push) Has been skipped
Reviewed-on: #6
2026-07-10 12:44:50 +03:00
sailor a912d08482 Merge pull request 'add compose and fix dockerfile' (#5) from builder-local into main
Docker Build and Push / build (push) Successful in 18s
Reviewed-on: #5
2026-07-09 20:33:59 +03:00
sailor 3d8de18123 Merge pull request 'refactor ci' (#4) from builder-local into main
Docker Build and Push / build (push) Successful in 14s
Reviewed-on: #4
2026-07-09 20:21:13 +03:00
sailor 5daef4f2d5 Merge pull request 'add local registry' (#3) from builder-local into main
Docker Build and Push / build (push) Successful in 1m37s
Reviewed-on: #3
2026-07-09 14:45:51 +03:00
sailor 6668f65528 fix registru from build
Docker Build and Push / build (push) Failing after 8m13s
Reviewed-on: #2
2026-07-09 14:24:47 +03:00
sailor ebd04134bf new ci
Docker Build and Push / build (push) Failing after 9m34s
Reviewed-on: #1
2026-07-09 13:58:58 +03:00
7 changed files with 37 additions and 91 deletions
+2
View File
@@ -0,0 +1,2 @@
Ты devops инженер. Твоя основная специальность это автоматизация и настройка серверов.
Ты занят настройкой opensearch.
@@ -1,12 +0,0 @@
@startuml
top to bottom direction
cloud "Интернет" as Internet
rectangle "Proxy" as Proxy
rectangle "K8s" as K8s
rectangle "Docker" as Docker
Internet -- Proxy
Proxy -- K8s
Proxy -down- Docker
@enduml
-27
View File
@@ -1,27 +0,0 @@
@startuml
!theme bluegray
title Схема доступа к VM через Proxy
cloud "Интернет" as Internet
node "Proxy" as proxy
node "Master-1" as m1
node "Master-2" as m2
node "Master-3" as m3
node "Worker-1" as w1
node "Worker-2" as w2
node "Worker-3" as w3
node "Docker" as d1
Internet -down- proxy
proxy -down- m1
proxy -down- m2
proxy -down- m3
proxy -down- w1
proxy -down- w2
proxy -down- w3
proxy -down- d1
@enduml
-21
View File
@@ -1,21 +0,0 @@
# Архитектура моей лаборатории
Моя лаборатория - это мой мини прокет по освоению новых для меня технологий.
## На чем развернуто
У меня есть 2 стенда:
1) Домашний ПК
2) Виртуалки в клауде
Что дома, что в клауде используется Proxmox для виртуализации. Приложения разворачиваются в kubernetes. На отдельной ВМ крутятся БД. Стенды по содержанию идентичны
Схема стенда ./docs/sailor-lab/scema-sailor-lab-components.puml
Все виртуалки созданы Terraform через API Proxmox
## Стек
### Compute
- K8s
### Monitoring
- Prometheus
- Grafana
### DevOps
- Gitea
### Backup
- Restic
### Docs
- Mkdocs
+27
View File
@@ -0,0 +1,27 @@
@startuml
!theme bluegray
title Схема доступа к Vm через Proxy
node "Proxy" as proxy
node "Master-1" as m1
node "Master-2" as m2
node "Master-3" as m3
node "Worker-1" as w1
node "Worker-2" as w2
node "Worker-3" as w3
node "Docker" as d1
proxy -down-> m1
proxy -down-> m2
proxy -down-> m3
proxy -down-> w1
proxy -down-> w2
proxy -down-> w3
proxy -down-> d1
@enduml
+8 -31
View File
@@ -1,47 +1,24 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: mkdocs
---
apiVersion: v1
kind: Service
metadata:
name: sailor-mkdocs
labels:
app: sailor-mkdocs
service: sailor-mkdocs
spec:
ports:
- name: http
port: 8080
targetPort: 8000
selector:
app: sailor-mkdocs
---
# deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: sailor-mkdocs
namespace: mkdocs
name: sailor-mkdocs # Имя вашего развертывания
spec:
replicas: 2
replicas: 2 # Желаемое количество запущенных экземпляров (подов)
selector:
matchLabels:
app: sailor-mkdocs
app: sailor-mkdocs # Как Deployment будет находить свои поды
template:
metadata:
labels:
app: sailor-mkdocs
app: sailor-mkdocs # Метка, которая будет присвоена подам
spec:
nodeSelector:
kubernetes.io/hostname: worker-2
containers:
- name: mkdocs
image: gitea.trastinfo.ru/sailor/mkdocs:7c2e6b6ecc3e32e5e4f59e6628af0a87d3acb005
image: gitea.trastinfo.ru/sailor/mkdocs:5d64ae8732c674d0e6d5132a0e8c7db1c4acc790 # ПУТЬ К ВАШЕМУ ОБРАЗУ!
ports:
- containerPort: 8000
resources:
- containerPort: 8000 # Порт, который слушает ваше приложение внутри контейнера
resources: # Рекомендуется указывать для планирования ресурсов
requests:
memory: "128Mi"
cpu: "100m"