Fix brusnika-prod flux path and add test-flux service

This commit is contained in:
Kochetkov S 2026-06-01 18:35:38 +03:00
parent 70f0d7f9bb
commit 9f80a3de58
4 changed files with 6507 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,27 @@
# This manifest was generated by flux. DO NOT EDIT.
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: flux-system
namespace: flux-system
spec:
interval: 1m0s
ref:
branch: master
secretRef:
name: flux-system
url: https://gitea.prod.brusnika.sarex.lonsdaleites.ru/sarex/iac.git
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: flux-system
namespace: flux-system
spec:
interval: 10m0s
path: ./clusters/brusnika-prod
prune: true
sourceRef:
kind: GitRepository
name: flux-system

View File

@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- gotk-components.yaml
- gotk-sync.yaml

View File

@ -0,0 +1,43 @@
apiVersion: v1
kind: Namespace
metadata:
name: test-flux
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: test-flux-http
namespace: test-flux
labels:
app: test-flux-http
spec:
replicas: 1
selector:
matchLabels:
app: test-flux-http
template:
metadata:
labels:
app: test-flux-http
spec:
containers:
- name: http-echo
image: hashicorp/http-echo:1.0.0
args:
- "-text=ok from test-flux"
ports:
- containerPort: 5678
name: http
---
apiVersion: v1
kind: Service
metadata:
name: test-flux-http
namespace: test-flux
spec:
selector:
app: test-flux-http
ports:
- name: http
port: 80
targetPort: 5678