fluxcd : adding repo example with some apps
This commit is contained in:
@@ -0,0 +1,122 @@
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: http-broadcaster
|
||||
spec:
|
||||
chart:
|
||||
spec:
|
||||
chart: myChart
|
||||
reconcileStrategy: ChartVersion
|
||||
version: "2.x.x"
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: myChart
|
||||
namespace: infrastructure
|
||||
interval: 10m0s
|
||||
values:
|
||||
environment:
|
||||
fullnameOverride: "http-broadcaster"
|
||||
|
||||
app:
|
||||
name: "app"
|
||||
|
||||
image:
|
||||
repository: gitlabregistry.example.com/infrastructure/http-broadcaster
|
||||
pullPolicy: IfNotPresent
|
||||
tag:
|
||||
|
||||
labels:
|
||||
technology: "go"
|
||||
role: "api"
|
||||
|
||||
resources:
|
||||
requests:
|
||||
memory: 64Mi
|
||||
cpu: 200m
|
||||
limits:
|
||||
memory: 64Mi
|
||||
cpu: 400m
|
||||
|
||||
containerPort:
|
||||
broadcaster: 6081
|
||||
|
||||
readinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- curl
|
||||
- -f
|
||||
- -L
|
||||
- -m
|
||||
- "5"
|
||||
- "127.0.0.1:6081/healthcheck"
|
||||
|
||||
livenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- curl
|
||||
- -f
|
||||
- -L
|
||||
- -m
|
||||
- "5"
|
||||
- "127.0.0.1:6081/healthcheck"
|
||||
|
||||
command:
|
||||
- "/bin/sh"
|
||||
- "-c"
|
||||
- "[ -f /vault/secrets/.env ] && http-broadcaster --metrics"
|
||||
|
||||
lifecycle: {}
|
||||
|
||||
securityContext:
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
allowPrivilegeEscalation: false
|
||||
runAsNonRoot: true
|
||||
runAsUser: 1000
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
|
||||
# Generic sidecars
|
||||
nginx:
|
||||
enabled: false
|
||||
|
||||
fpmExporter:
|
||||
enabled: false
|
||||
|
||||
elasticAgent:
|
||||
enabled: false
|
||||
|
||||
logrotate:
|
||||
enabled: false
|
||||
|
||||
imagePullSecrets:
|
||||
- name: registry-credentials
|
||||
|
||||
vault:
|
||||
enabled: true
|
||||
|
||||
serviceAccount:
|
||||
create: true
|
||||
|
||||
service:
|
||||
extraPorts:
|
||||
- name: web
|
||||
port: 6081
|
||||
targetPort: 6081
|
||||
|
||||
ingress:
|
||||
enabled: true
|
||||
autoIngress:
|
||||
enabled: true
|
||||
path: "/"
|
||||
port: 6081
|
||||
|
||||
replicaCount: 2
|
||||
|
||||
autoscaling:
|
||||
enabled: false
|
||||
minReplicas: 1
|
||||
maxReplicas: 1
|
||||
targetCPUUtilizationPercentage: 40
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- hr-http-broadcaster.yaml
|
||||
59
fluxcd/repo/apps/base/k6-operator/hr-k6-operator.yaml
Normal file
59
fluxcd/repo/apps/base/k6-operator/hr-k6-operator.yaml
Normal file
@@ -0,0 +1,59 @@
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: k6-operator
|
||||
spec:
|
||||
chart:
|
||||
spec:
|
||||
# https://github.com/grafana/k6-operator/blob/main/charts/k6-operator/values.yaml
|
||||
chart: k6-operator
|
||||
reconcileStrategy: ChartVersion
|
||||
version: "3.x.x"
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: grafana
|
||||
namespace: infrastructure
|
||||
interval: 10m0s
|
||||
|
||||
values:
|
||||
fullnameOverride: "k6-operator"
|
||||
customLabels:
|
||||
team: "infrastructure"
|
||||
|
||||
manager:
|
||||
replicas: 1
|
||||
serviceAccount:
|
||||
name: "k6-operator-controller"
|
||||
create: true
|
||||
image:
|
||||
registry: ghcr.io
|
||||
repository: grafana/k6-operator
|
||||
tag: controller-v0.0.19
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
livenessProbe: {}
|
||||
readinessProbe: {}
|
||||
|
||||
resources:
|
||||
limits:
|
||||
cpu: 100m
|
||||
memory: 100Mi
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 100Mi
|
||||
env:
|
||||
# Indique que seul le namespace infrastructure est surveille.
|
||||
- name: WATCH_NAMESPACE
|
||||
value: 'infrastructure'
|
||||
|
||||
authProxy:
|
||||
# Disable/Enable authentication on metric endpoint
|
||||
enabled: false
|
||||
|
||||
installCRDs: true
|
||||
namespace:
|
||||
create: false
|
||||
|
||||
prometheus:
|
||||
enabled: false
|
||||
5
fluxcd/repo/apps/base/k6-operator/kustomization.yaml
Normal file
5
fluxcd/repo/apps/base/k6-operator/kustomization.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- hr-k6-operator.yaml
|
||||
Reference in New Issue
Block a user