gitops: add rbac kustomization + store some forgotten older changes in

repo
This commit is contained in:
Jan Novak
2026-03-01 14:33:56 +01:00
parent 0eab64c954
commit 9877b093e8
6 changed files with 41 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: gitea-ci-deploy
subjects:
- kind: User
name: "gitea_ci@idm.home.hrajfrisbee.cz" # matches preferred_username claim
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: ClusterRole
name: edit # scope down as needed
apiGroup: rbac.authorization.k8s.io

View File

@@ -24,6 +24,8 @@ spec:
enabled: true enabled: true
ui: ui:
enabled: true enabled: true
ingressController:
enabled: true
ipam: ipam:
mode: cluster-pool mode: cluster-pool
operator: operator:

View File

@@ -14,6 +14,19 @@ spec:
--- ---
apiVersion: kustomize.toolkit.fluxcd.io/v1 apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization kind: Kustomization
metadata:
name: 00-rbac
namespace: flux-system
spec:
interval: 10m0s
path: ./gitops/home-kubernetes/00-crds
prune: true
sourceRef:
kind: GitRepository
name: flux-system
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata: metadata:
name: cilium name: cilium
namespace: flux-system namespace: flux-system

View File

@@ -39,6 +39,7 @@ spec:
ingress: ingress:
enabled: true enabled: true
className: nginx className: nginx
pathType: Prefix
annotations: annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod cert-manager.io/cluster-issuer: letsencrypt-prod
hosts: hosts:

View File

@@ -24,7 +24,7 @@ spec:
- host: podinfo.lab.home.hrajfrisbee.cz - host: podinfo.lab.home.hrajfrisbee.cz
paths: paths:
- path: / - path: /
pathType: ImplementationSpecific pathType: Prefix
tls: [] tls: []
# - secretName: chart-example-tls # - secretName: chart-example-tls
# hosts: # hosts:

View File

@@ -0,0 +1,12 @@
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'kacerr.cz@gmail.com'
EMAIL_HOST_PASSWORD = 'zeyd ppmy gfqu gaws' # App Password, not your login password
EMAIL_PORT = 587
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
SERVER_EMAIL = EMAIL_HOST_USER
FILE_SERVER_ROOT = 'https://seafile.lab.home.hrajfrisbee.cz/seafhttp'
DEBUG = True