Impossible to use existing PVC
Hello I want to use existing pvc to deploy GitLab. At each deployment test, new volumes are created and my existing pvc are ignored. Here is my helm value file.
global:
certificates:
customCAs:
- secret: sec-gitlab-cacert
common:
labels: {}
edition: ce
gitlabVersion: "17.9.2"
image: {}
pod:
labels: {}
application:
create: false
links: []
allowClusterRoles: true
hosts:
domain: coolcorp.priv
https: true
ingress:
apiVersion: networking.k8s.io/v1
configureCertmanager: false
provider: traefik
enabled: false
class: ingress-lan
annotations:
cert-manager.io/cluster-issuer: clusterissuer-acme2certifier
tls:
enabled: false
#secretName: sec-gitlab-cert # facultatif, cert-manager le créera
path: /
pathType: Prefix
monitoring:
enabled: false
redis:
persistence:
enabled: true
existingClaim: pvc-gitlab-redis
auth:
enabled: true
sentinelAuth:
enabled: false
gitaly:
enabled: true
persistence:
enabled: true
existingClaim: pvc-gitlab-repo
minio:
enabled: false
appConfig:
object_store:
enabled: true
proxy_download: true
connection:
secret: sec-gitlab-minio
key: config
storage:
provider: AWS
region: "minio" # Correction : "minio" remplacé par une région valide
endpoint: "https://minioapi.coolcorp.priv" # Remplace par l'URL de ton MinIO
bucket: "gitlab" # Remplace par le bucket que tu as créé pour GitLab
path_style: true # Important pour MinIO
insecure: true # Désactive la vérification SSL
kas:
enabled: true
service:
apiExternalPort: 8153 # port for connections from the GitLab backend
tls:
enabled: false
verify: true
certmanager:
installCRDs: false
install: false
nginx-ingress: &nginx-ingress
enabled: false
tcpExternalConfig: "false"
prometheus:
install: false
redis:
install: true
image:
tag: "6.2.16-debian-12-r1"
auth:
existingSecret: gitlab-redis-secret
existingSecretKey: redis-password
usePasswordFiles: true
architecture: standalone
cluster:
enabled: false
metrics:
enabled: true
image:
tag: "1.46.0-debian-11-r8"
postgresql:
install: true
persistence:
existingClaim: pvc-gitlab-postgresql
enabled: true
gitlab-runner:
certsSecretName: sec-gitlab-cacert
install: true
rbac:
create: true
runners:
locked: false
# Set secret to an arbitrary value because the runner chart renders the gitlab-runner.secret template only if it is not empty.
# The parent/GitLab chart overrides the template to render the actual secret name.
secret: "nonempty"
config: |
[[runners]]
[runners.kubernetes]
image = "ubuntu:22.04"
{{- if .Values.global.minio.enabled }}
[runners.cache]
Type = "s3"
Path = "gitlab-runner"
Shared = true
[runners.cache.s3]
ServerAddress = {{ include "gitlab-runner.cache-tpl.s3ServerAddress" . }}
BucketName = "runner-cache"
BucketLocation = "us-east-1"
Insecure = false
{{ end }}
podAnnotations:
gitlab.com/prometheus_scrape: "true"
gitlab.com/prometheus_port: 9252
podSecurityContext:
seccompProfile:
type: "RuntimeDefault"
traefik:
install: false
gitlab:
toolbox:
replicas: 1
antiAffinityLabels:
matchLabels:
app: gitaly
Is there an error in my file? Or is it impossible to use existing pvc?