feat(k3s): processing-k8s-init — применение DNS-моста через kubectl
This commit is contained in:
parent
934ccbbb73
commit
a7c97027ae
@ -62,6 +62,26 @@ services:
|
||||
soft: 65535
|
||||
hard: 65535
|
||||
|
||||
# Одноразовый провижининг k3s: namespace processing + DNS-мост postgres/minio.
|
||||
# Образ k3s содержит kubectl; server/tls перекрываем на k3s-server:6443
|
||||
# (kubeconfig из /output даёт клиентские креды, адрес/TLS переопределяем флагами).
|
||||
processing-k8s-init:
|
||||
image: ${K3S_IMAGE:-rancher/k3s:v1.36.2-k3s1}
|
||||
container_name: processing-k8s-init
|
||||
restart: "no"
|
||||
depends_on:
|
||||
k3s-server:
|
||||
condition: service_healthy
|
||||
entrypoint: ["/bin/sh", "-ec"]
|
||||
command:
|
||||
- |
|
||||
kubectl --kubeconfig /kube/config \
|
||||
--server https://k3s-server:6443 --insecure-skip-tls-verify \
|
||||
apply -f /manifests/
|
||||
volumes:
|
||||
- ./k3s/kubeconfig.yaml:/kube/config:ro,z
|
||||
- ./k3s/manifests/processing:/manifests:ro,z
|
||||
|
||||
gitea:
|
||||
image: ${GITEA_IMAGE:-gitea/gitea:1.22}
|
||||
container_name: gitea
|
||||
|
||||
Loading…
Reference in New Issue
Block a user