deploy: add Gitea registry pull secret and ExternalSecret
All checks were successful
Deploy to K8s / deploy (push) Successful in 8s
Build and Push / build (push) Successful in 5s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-26 13:37:16 +01:00
parent 4d800ffbfb
commit f7353d48f4
3 changed files with 25 additions and 0 deletions

View File

@@ -17,6 +17,8 @@ spec:
app.kubernetes.io/name: gateway-cert-operator app.kubernetes.io/name: gateway-cert-operator
app.kubernetes.io/component: operator app.kubernetes.io/component: operator
spec: spec:
imagePullSecrets:
- name: gitea-registry
serviceAccountName: gateway-cert-operator serviceAccountName: gateway-cert-operator
terminationGracePeriodSeconds: 10 terminationGracePeriodSeconds: 10
securityContext: securityContext:

View File

@@ -0,0 +1,22 @@
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: gitea-registry
namespace: fujarna
spec:
refreshInterval: 1h
secretStoreRef:
name: vault-backend
kind: ClusterSecretStore
target:
name: gitea-registry
creationPolicy: Owner
template:
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: "{{ .token }}"
data:
- secretKey: token
remoteRef:
key: k8s_home/gitea/container-registry
property: token

View File

@@ -3,6 +3,7 @@ kind: Kustomization
resources: resources:
- namespace_gateway-cert-operator-system.yaml - namespace_gateway-cert-operator-system.yaml
- externalsecret_gitea-registry.yaml
- serviceaccount_gateway-cert-operator.yaml - serviceaccount_gateway-cert-operator.yaml
- clusterrole_gateway-cert-operator.yaml - clusterrole_gateway-cert-operator.yaml
- clusterrolebinding_gateway-cert-operator.yaml - clusterrolebinding_gateway-cert-operator.yaml