Compare commits
No commits in common. "aeb486a8dc94c14b23275efc0e065867e3e6e7a0" and "885f23524444c48edaf0746f743a987ef9769e18" have entirely different histories.
aeb486a8dc
...
885f235244
|
|
@ -1,35 +0,0 @@
|
||||||
kind: Service
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: nfs-service
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
role: nfs
|
|
||||||
ports:
|
|
||||||
# Open the ports required by the NFS server
|
|
||||||
# Port 2049 for TCP
|
|
||||||
- name: tcp-2049
|
|
||||||
port: 2049
|
|
||||||
protocol: TCP
|
|
||||||
|
|
||||||
# Port 111 for UDP
|
|
||||||
- name: udp-111
|
|
||||||
port: 111
|
|
||||||
type: NodeIP
|
|
||||||
---
|
|
||||||
kind: Pod
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: nfs-server
|
|
||||||
labels:
|
|
||||||
role: nfs
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: nfs-server
|
|
||||||
image: cpuguy83/nfs-server
|
|
||||||
securityContext:
|
|
||||||
privileged: true
|
|
||||||
args:
|
|
||||||
# Pass the paths to share to the Docker image
|
|
||||||
- /exports
|
|
||||||
|
|
||||||
|
|
@ -17,16 +17,10 @@ lb:
|
||||||
subnet: 192.168.230.0/24
|
subnet: 192.168.230.0/24
|
||||||
# Paramètre propre à notre application Gitea
|
# Paramètre propre à notre application Gitea
|
||||||
# extrenalips doit être dans le réseau du LoadBalancer mais ne doit pas entrer en conflit avec le pool ou l'IP des nodes
|
# extrenalips doit être dans le réseau du LoadBalancer mais ne doit pas entrer en conflit avec le pool ou l'IP des nodes
|
||||||
#gitea:
|
gitea:
|
||||||
# storageclass: ""
|
replicacount: 1
|
||||||
# FIXME: NFS storage not working
|
servicetype: LoadBalancer
|
||||||
# storageclass: nfs-client
|
externalips: 192.168.230.10
|
||||||
# servicetype: LoadBalancer
|
|
||||||
# externalips: 192.168.230.10
|
|
||||||
# FIXME: gitea-ha not working (because NFS ?)
|
|
||||||
#gitea-ha:
|
|
||||||
# replica: 2
|
|
||||||
# storageclass: nfs-client
|
|
||||||
# Variable utilisé uniquement pour le téléchargement de CRI-O
|
# Variable utilisé uniquement pour le téléchargement de CRI-O
|
||||||
#os: "Debian_11"
|
#os: "Debian_11"
|
||||||
# Version de Kubernetes - utilisé pour le téchargement de CRI-O
|
# Version de Kubernetes - utilisé pour le téchargement de CRI-O
|
||||||
|
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
# To get the default file
|
|
||||||
# helm show values gitea-charts/gitea > values.yaml
|
|
||||||
- name: Get values
|
|
||||||
template:
|
|
||||||
src: values.yaml.j2
|
|
||||||
dest: /tmp/values.yaml
|
|
||||||
|
|
||||||
- name: install helm-git plugin
|
|
||||||
shell: helm plugin install https://github.com/aslafy-z/helm-git --version 0.15.1
|
|
||||||
|
|
||||||
- name: remove old gitea repo if exist
|
|
||||||
shell: helm repo remove gitea-charts
|
|
||||||
ignore_errors: true
|
|
||||||
|
|
||||||
- name: install gitea-ha via helm
|
|
||||||
shell: |
|
|
||||||
helm repo add gitea-charts git+https://gitea.com/gitea/helm-chart@/?ref=deployment
|
|
||||||
helm repo update
|
|
||||||
helm install -f /tmp/values.yaml gitea gitea-charts/gitea --version 0.0.0
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
image:
|
|
||||||
tag: "dev"
|
|
||||||
PullPolicy: "Always"
|
|
||||||
rootless: true
|
|
||||||
|
|
||||||
replicaCount: {{ gitea-helm-ha.replica }}
|
|
||||||
|
|
||||||
persistence:
|
|
||||||
enabled: true
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteMany
|
|
||||||
storageClass: {{ gitea-helm-ha.storageclass }}
|
|
||||||
|
|
||||||
redis-cluster:
|
|
||||||
enabled: false
|
|
||||||
global:
|
|
||||||
redis:
|
|
||||||
password: gitea
|
|
||||||
|
|
||||||
gitea:
|
|
||||||
config:
|
|
||||||
indexer:
|
|
||||||
ISSUE_INDEXER_ENABLED: true
|
|
||||||
REPO_INDEXER_ENABLED: false
|
|
||||||
|
|
@ -14,14 +14,14 @@ global:
|
||||||
## - myRegistryKeySecretName
|
## - myRegistryKeySecretName
|
||||||
##
|
##
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
storageClass: {{ gitea.storageclass }}
|
storageClass: ""
|
||||||
hostAliases: []
|
hostAliases: []
|
||||||
# - ip: 192.168.137.2
|
# - ip: 192.168.137.2
|
||||||
# hostnames:
|
# hostnames:
|
||||||
# - example.com
|
# - example.com
|
||||||
|
|
||||||
## @param replicaCount number of replicas for the statefulset
|
## @param replicaCount number of replicas for the statefulset
|
||||||
replicaCount: 1
|
replicaCount: {{ gitea.replicacount }}
|
||||||
|
|
||||||
## @param clusterDomain cluster domain
|
## @param clusterDomain cluster domain
|
||||||
clusterDomain: cluster.local
|
clusterDomain: cluster.local
|
||||||
|
|
@ -225,7 +225,7 @@ persistence:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
labels: {}
|
labels: {}
|
||||||
annotations: {}
|
annotations: {}
|
||||||
storageClass: {{ gitea.storageclass }}
|
storageClass:
|
||||||
subPath:
|
subPath:
|
||||||
|
|
||||||
## @param extraVolumes Additional volumes to mount to the Gitea statefulset
|
## @param extraVolumes Additional volumes to mount to the Gitea statefulset
|
||||||
|
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
---
|
|
||||||
apiVersion: storage.k8s.io/v1
|
|
||||||
kind: StorageClass
|
|
||||||
metadata:
|
|
||||||
name: openebs-hostpath
|
|
||||||
annotations:
|
|
||||||
storageclass.kubernetes.io/is-default-class: "true"
|
|
||||||
openebs.io/cas-type: local
|
|
||||||
cas.openebs.io/config: |
|
|
||||||
- name: StorageType
|
|
||||||
value: "hostpath"
|
|
||||||
- name: BasePath
|
|
||||||
value: "/var/openebs/local/"
|
|
||||||
provisioner: openebs.io/local
|
|
||||||
volumeBindingMode: WaitForFirstConsumer
|
|
||||||
reclaimPolicy: Delete
|
|
||||||
Loading…
Reference in New Issue