-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jnobrega
committed
May 12, 2024
1 parent
ed30368
commit f9cf550
Showing
4 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
71 changes: 71 additions & 0 deletions
71
k8s/apps/kube-system/kubernetes-schemas/app/helm-release.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json | ||
apiVersion: helm.toolkit.fluxcd.io/v2beta2 | ||
kind: HelmRelease | ||
metadata: | ||
name: kubernetes-schemas | ||
spec: | ||
interval: 15m | ||
chart: | ||
spec: | ||
chart: app-template | ||
version: 3.1.0 | ||
sourceRef: | ||
kind: HelmRepository | ||
name: bjw-s-charts | ||
namespace: flux-system | ||
interval: 15m | ||
install: | ||
createNamespace: true | ||
remediation: | ||
retries: 3 | ||
upgrade: | ||
remediation: | ||
retries: 3 | ||
values: | ||
controllers: | ||
kubernetes-schemas: | ||
containers: | ||
main: | ||
image: | ||
repository: ghcr.io/budimanjojo/kubernetes-schemas-web | ||
tag: latest@sha256:fee509d69466eff0a4d1e2e426f41adce4b0e124b5a948143706ea4bfe5b497e | ||
resources: | ||
requests: | ||
cpu: 10m | ||
memory: 50Mi | ||
limits: | ||
memory: 100Mi | ||
probes: | ||
startup: | ||
enabled: true | ||
spec: | ||
failureThreshold: 30 | ||
periodSeconds: 5 | ||
liveness: | ||
enabled: true | ||
readiness: | ||
enabled: true | ||
service: | ||
main: | ||
controller: kubernetes-schemas | ||
ports: | ||
http: | ||
port: 8080 | ||
|
||
ingress: | ||
main: | ||
enabled: true | ||
className: traefik | ||
hosts: | ||
- host: &host schemas.${SECRET_DOMAIN} | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
service: | ||
identifier: main | ||
port: http | ||
tls: | ||
- hosts: | ||
- *host | ||
secretName: ${SECRET_DOMAIN}-tls |
5 changes: 5 additions & 0 deletions
5
k8s/apps/kube-system/kubernetes-schemas/app/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- helm-release.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/kustomize.toolkit.fluxcd.io/kustomization_v1.json | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1 | ||
kind: Kustomization | ||
metadata: | ||
name: kubernetes-schemas | ||
namespace: flux-system | ||
spec: | ||
targetNamespace: kube-system | ||
path: ./k8s/apps/kube-system/kubernetes-schemas/app | ||
prune: true | ||
sourceRef: | ||
kind: GitRepository | ||
name: home-cluster | ||
wait: true | ||
interval: 30m | ||
retryInterval: 1m | ||
timeout: 5m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ resources: | |
- ./reflector/ks.yaml | ||
- ./descheduler/ks.yaml | ||
- ./reloader/ks.yaml | ||
- ./kubernetes-chemas/ks.yaml |