From 29297a35410ba598fd1a7e2d91b5b64657c92e64 Mon Sep 17 00:00:00 2001 From: David Landry Date: Thu, 10 Jul 2025 16:26:39 -0400 Subject: [PATCH] chore(forgejo): update probes --- bootstrap/forgejo/values.yaml | 5 +- projects/media.yaml | 93 --------------------------------- projects/prod-sites.yaml | 98 ----------------------------------- projects/staging-sites.yaml | 98 ----------------------------------- projects/work.yaml | 98 ----------------------------------- 5 files changed, 3 insertions(+), 389 deletions(-) delete mode 100644 projects/media.yaml delete mode 100644 projects/prod-sites.yaml delete mode 100644 projects/staging-sites.yaml delete mode 100644 projects/work.yaml diff --git a/bootstrap/forgejo/values.yaml b/bootstrap/forgejo/values.yaml index d1e08dd..6d4413d 100644 --- a/bootstrap/forgejo/values.yaml +++ b/bootstrap/forgejo/values.yaml @@ -657,7 +657,8 @@ gitea: # Modify the liveness probe for your needs or completely disable it by commenting out. livenessProbe: enabled: true - tcpSocket: + httpGet: + path: /api/healthz port: http initialDelaySeconds: 200 timeoutSeconds: 1 @@ -677,7 +678,7 @@ gitea: ## @param gitea.readinessProbe.failureThreshold Failure threshold for readiness probe # Modify the readiness probe for your needs or completely disable it by commenting out. readinessProbe: - enabled: true + enabled: false httpGet: path: /api/healthz port: http diff --git a/projects/media.yaml b/projects/media.yaml deleted file mode 100644 index a84bc19..0000000 --- a/projects/media.yaml +++ /dev/null @@ -1,93 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - annotations: - argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc - argocd.argoproj.io/sync-options: PruneLast=true - argocd.argoproj.io/sync-wave: "-2" - creationTimestamp: null - name: media - namespace: argocd -spec: - clusterResourceWhitelist: - - group: "*" - kind: "*" - description: media project - destinations: - - namespace: "*" - server: "*" - namespaceResourceWhitelist: - - group: "*" - kind: "*" - sourceRepos: - - "*" -status: {} - ---- -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: media - namespace: argocd -spec: - generators: - - git: - files: - - path: apps/**/media/config.json - repoURL: ssh://git@gitea-ssh.gitops.svc.cluster.local:2222/davad/argo.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - - git: - files: - - path: apps/**/media/config_dir.json - repoURL: ssh://git@gitea-ssh.gitops.svc.cluster.local:2222/davad/argo.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: "{{ exclude }}" - include: "{{ include }}" - jsonnet: {} - recurse: true - repoURL: "" - syncPolicy: {} - template: - metadata: - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: "{{ appName }}" - name: media-{{ userGivenName }} - namespace: argocd - spec: - destination: - namespace: "{{ destNamespace }}" - server: "{{ destServer }}" - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: media - source: - path: "{{ srcPath }}" - repoURL: "{{ srcRepoURL }}" - targetRevision: "{{ srcTargetRevision }}" - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} diff --git a/projects/prod-sites.yaml b/projects/prod-sites.yaml deleted file mode 100644 index a06df9e..0000000 --- a/projects/prod-sites.yaml +++ /dev/null @@ -1,98 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - annotations: - argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc - argocd.argoproj.io/sync-options: PruneLast=true - argocd.argoproj.io/sync-wave: "-2" - creationTimestamp: null - name: prod-sites - namespace: argocd -spec: - clusterResourceWhitelist: - - group: "*" - kind: "*" - description: prod version of static sites - destinations: - - namespace: "prod-sites" - server: "*" - namespaceResourceWhitelist: - - group: "*" - kind: "*" - sourceRepos: - - "*" -status: {} - ---- -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: prod-sites - namespace: argocd -spec: - generators: - - git: - files: - - path: apps/**/prod-sites/config.json - repoURL: ssh://git@gitea-ssh.gitops.svc.cluster.local:2222/davad/argo.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - - git: - files: - - path: apps/**/prod-sites/config_dir.json - repoURL: ssh://git@gitea-ssh.gitops.svc.cluster.local:2222/davad/argo.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: "{{ exclude }}" - include: "{{ include }}" - jsonnet: {} - recurse: true - repoURL: "" - syncPolicy: {} - template: - metadata: - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: "{{ appName }}" - name: prod-sites-{{ userGivenName }} - namespace: argocd - spec: - destination: - namespace: "{{ destNamespace }}" - server: "{{ destServer }}" - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: prod-sites - source: - path: "{{ srcPath }}" - repoURL: "{{ srcRepoURL }}" - targetRevision: "{{ srcTargetRevision }}" - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} ---- -apiVersion: v1 -kind: Namespace -metadata: - name: prod-sites diff --git a/projects/staging-sites.yaml b/projects/staging-sites.yaml deleted file mode 100644 index 94ebad8..0000000 --- a/projects/staging-sites.yaml +++ /dev/null @@ -1,98 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - annotations: - argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc - argocd.argoproj.io/sync-options: PruneLast=true - argocd.argoproj.io/sync-wave: "-2" - creationTimestamp: null - name: staging-sites - namespace: argocd -spec: - clusterResourceWhitelist: - - group: "*" - kind: "*" - description: staging version of static sites - destinations: - - namespace: "staging-sites" - server: "*" - namespaceResourceWhitelist: - - group: "*" - kind: "*" - sourceRepos: - - "*" -status: {} - ---- -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: staging-sites - namespace: argocd -spec: - generators: - - git: - files: - - path: apps/**/staging-sites/config.json - repoURL: ssh://git@gitea-ssh.gitops.svc.cluster.local:2222/davad/argo.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - - git: - files: - - path: apps/**/staging-sites/config_dir.json - repoURL: ssh://git@gitea-ssh.gitops.svc.cluster.local:2222/davad/argo.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: "{{ exclude }}" - include: "{{ include }}" - jsonnet: {} - recurse: true - repoURL: "" - syncPolicy: {} - template: - metadata: - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: "{{ appName }}" - name: staging-sites-{{ userGivenName }} - namespace: argocd - spec: - destination: - namespace: "{{ destNamespace }}" - server: "{{ destServer }}" - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: staging-sites - source: - path: "{{ srcPath }}" - repoURL: "{{ srcRepoURL }}" - targetRevision: "{{ srcTargetRevision }}" - syncPolicy: - automated: - allowEmpty: true - prune: true - selfHeal: true -status: {} ---- -apiVersion: v1 -kind: Namespace -metadata: - name: staging-sites diff --git a/projects/work.yaml b/projects/work.yaml deleted file mode 100644 index 8417b60..0000000 --- a/projects/work.yaml +++ /dev/null @@ -1,98 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - annotations: - argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc - argocd.argoproj.io/sync-options: PruneLast=true - argocd.argoproj.io/sync-wave: "-2" - creationTimestamp: null - name: work - namespace: argocd -spec: - clusterResourceWhitelist: - - group: "*" - kind: "*" - description: playground for work projects - destinations: - - namespace: "work-*" # Change back to 'work-*' after I finish testing the rabbitmq operators - server: "*" - namespaceResourceWhitelist: - - group: "*" - kind: "*" - sourceRepos: - - "*" -status: {} - ---- -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - annotations: - argocd.argoproj.io/sync-wave: "0" - creationTimestamp: null - name: work - namespace: argocd -spec: - generators: - - git: - files: - - path: apps/**/work/config.json - repoURL: ssh://git@gitea-ssh.gitops.svc.cluster.local:2222/davad/argo.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - - git: - files: - - path: apps/**/work/config_dir.json - repoURL: ssh://git@gitea-ssh.gitops.svc.cluster.local:2222/davad/argo.git - requeueAfterSeconds: 20 - revision: "" - template: - metadata: {} - spec: - destination: {} - project: "" - source: - directory: - exclude: "{{ exclude }}" - include: "{{ include }}" - jsonnet: {} - recurse: true - repoURL: "" - syncPolicy: {} - template: - metadata: - labels: - app.kubernetes.io/managed-by: argocd-autopilot - app.kubernetes.io/name: "{{ appName }}" - name: work-{{ userGivenName }} - namespace: argocd - spec: - destination: - namespace: "{{ destNamespace }}" - server: "{{ destServer }}" - ignoreDifferences: - - group: argoproj.io - jsonPointers: - - /status - kind: Application - project: work - source: - path: "{{ srcPath }}" - repoURL: "{{ srcRepoURL }}" - targetRevision: "{{ srcTargetRevision }}" - syncPolicy: - # automated: - # allowEmpty: true - # prune: true - # selfHeal: true -status: {} ---- -apiVersion: v1 -kind: Namespace -metadata: - name: work