init
This commit is contained in:
14
manifests/devops/gitea-admin-secret.yaml
Normal file
14
manifests/devops/gitea-admin-secret.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
# https://kubernetes.io/docs/concepts/configuration/secret/
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: gitea-admin
|
||||
namespace: devops
|
||||
type: Opaque
|
||||
stringData:
|
||||
username: admin
|
||||
password: SuperSecertPassword1234
|
||||
# Example:
|
||||
# password: {{ .Values.password | b64enc }}
|
||||
---
|
||||
|
||||
50
manifests/devops/gitea.yaml
Normal file
50
manifests/devops/gitea.yaml
Normal file
@@ -0,0 +1,50 @@
|
||||
|
||||
apiVersion: helm.cattle.io/v1
|
||||
kind: HelmChart
|
||||
metadata:
|
||||
name: gitea
|
||||
namespace: devops
|
||||
spec:
|
||||
repo: https://dl.gitea.io/charts/
|
||||
chart: gitea
|
||||
targetNamespace: devops
|
||||
version: 12.5.3
|
||||
valuesContent: |-
|
||||
image:
|
||||
registry: docker.io
|
||||
repository: commitgo/gitea-ee
|
||||
tag: 25.4.3
|
||||
rootless: true
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
service:
|
||||
http:
|
||||
type: ClusterIP
|
||||
ssh:
|
||||
type: ClusterIP
|
||||
|
||||
ingress:
|
||||
enabled: true
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: traefik
|
||||
hosts:
|
||||
- host: gitea.milasholsting.dk
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
tls:
|
||||
- secretName: gitea-tls
|
||||
hosts:
|
||||
- gitea.milasholsting.dk
|
||||
|
||||
gitea:
|
||||
admin:
|
||||
existingSecret: gitea-admin
|
||||
config:
|
||||
server:
|
||||
DOMAIN: gitea.milasholsting.dk
|
||||
ROOT_URL: https://gitea.milasholsting.dk/
|
||||
|
||||
persistence:
|
||||
size: 20Gi
|
||||
storageClass: local-path
|
||||
46
manifests/devops/giteaChartConfig.yaml
Normal file
46
manifests/devops/giteaChartConfig.yaml
Normal file
@@ -0,0 +1,46 @@
|
||||
apiVersion: helm.cattle.io/v1
|
||||
kind: HelmChartConfig
|
||||
metadata:
|
||||
name: gitea
|
||||
namespace: devops
|
||||
spec:
|
||||
valuesContent: |-
|
||||
image:
|
||||
registry: docker.io
|
||||
repository: commitgo/gitea-ee
|
||||
tag: 25.4.3
|
||||
rootless: true
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
service:
|
||||
http:
|
||||
type: ClusterIP
|
||||
ssh:
|
||||
type: ClusterIP
|
||||
|
||||
ingress:
|
||||
enabled: true
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: traefik
|
||||
hosts:
|
||||
- host: gitea.milasholsting.dk
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
tls:
|
||||
- secretName: gitea-tls
|
||||
hosts:
|
||||
- gitea.milasholsting.dk
|
||||
|
||||
gitea:
|
||||
admin:
|
||||
existingSecret: gitea-admin
|
||||
config:
|
||||
server:
|
||||
DOMAIN: gitea.milasholsting.dk
|
||||
ROOT_URL: https://gitea.milasholsting.dk/
|
||||
|
||||
persistence:
|
||||
size: 20Gi
|
||||
storageClass: local-path
|
||||
|
||||
6
manifests/devops/kustomization.yaml
Normal file
6
manifests/devops/kustomization.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace: devops
|
||||
|
||||
resources:
|
||||
- ./namespace.yaml
|
||||
- ./gitea-admin-secret.yaml
|
||||
- ./gitea.yaml
|
||||
4
manifests/devops/namespace.yaml
Normal file
4
manifests/devops/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: devops
|
||||
Reference in New Issue
Block a user