production: simplify health checks

According to https://fluxcd.io/docs/components/kustomize/kustomization/#recommended-settings
This commit is contained in:
xeruf 2022-07-01 22:03:53 +01:00
parent bcaafa4af5
commit 3ca1dbbcbe
3 changed files with 47 additions and 44 deletions

View File

@ -6,6 +6,7 @@ metadata:
namespace: flux-system
spec:
interval: 5m
wait: true
timeout: 12h
dependsOn:
- name: single-sign-on
@ -14,23 +15,23 @@ spec:
name: stackspout
path: ./basic/apps/dev
prune: true
healthChecks:
- apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
name: gitea
namespace: stackspout
- apiVersion: apps/v1
kind: Deployment
name: gitea-memcached
namespace: stackspout
- apiVersion: apps/v1
kind: StatefulSet
name: gitea-postgresql
namespace: stackspout
- apiVersion: apps/v1
kind: StatefulSet
name: gitea
namespace: stackspout
#healthChecks:
# - apiVersion: helm.toolkit.fluxcd.io/v2beta1
# kind: HelmRelease
# name: gitea
# namespace: stackspout
# - apiVersion: apps/v1
# kind: Deployment
# name: gitea-memcached
# namespace: stackspout
# - apiVersion: apps/v1
# kind: StatefulSet
# name: gitea-postgresql
# namespace: stackspout
# - apiVersion: apps/v1
# kind: StatefulSet
# name: gitea
# namespace: stackspout
postBuild:
substituteFrom:
#- kind: Secret

View File

@ -6,6 +6,7 @@ metadata:
namespace: flux-system
spec:
interval: 5m
wait: true
timeout: 12h
dependsOn:
- name: single-sign-on
@ -14,19 +15,19 @@ spec:
name: stackspout
path: ./basic/apps/people
prune: true
healthChecks:
- apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
name: suitecrm
namespace: stackspout
- apiVersion: apps/v1
kind: Deployment
name: suitecrm
namespace: stackspout
- apiVersion: apps/v1
kind: StatefulSet
name: suitecrm-mariadb
namespace: stackspout
#healthChecks:
# - apiVersion: helm.toolkit.fluxcd.io/v2beta1
# kind: HelmRelease
# name: suitecrm
# namespace: stackspout
# #- apiVersion: apps/v1
# # kind: Deployment
# # name: suitecrm
# # namespace: stackspout
# - apiVersion: apps/v1
# kind: StatefulSet
# name: suitecrm-mariadb
# namespace: stackspout
postBuild:
substituteFrom:
#- kind: Secret

View File

@ -6,7 +6,8 @@ metadata:
namespace: flux-system
spec:
interval: 5m
timeout: 12h
wait: true
timeout: 300m
dependsOn:
- name: single-sign-on
sourceRef:
@ -14,19 +15,19 @@ spec:
name: stackspout
path: ./basic/apps/do
prune: true
healthChecks:
- apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
name: vikunja
namespace: stackspout
- apiVersion: apps/v1
kind: Deployment
name: vikunja
namespace: stackspout
- apiVersion: apps/v1
kind: StatefulSet
name: gitea
namespace: stackspout
#healthChecks:
# - apiVersion: helm.toolkit.fluxcd.io/v2beta1
# kind: HelmRelease
# name: vikunja
# namespace: stackspout
# - apiVersion: apps/v1
# kind: Deployment
# name: vikunja
# namespace: stackspout
# - apiVersion: apps/v1
# kind: StatefulSet
# name: gitea
# namespace: stackspout
postBuild:
substituteFrom:
#- kind: Secret