Skip to content

Commit

Permalink
feat: add kubernetes-schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
jnobrega committed May 12, 2024
1 parent ed30368 commit f9cf550
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 0 deletions.
71 changes: 71 additions & 0 deletions k8s/apps/kube-system/kubernetes-schemas/app/helm-release.yaml
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
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
18 changes: 18 additions & 0 deletions k8s/apps/kube-system/kubernetes-schemas/ks.yaml
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
1 change: 1 addition & 0 deletions k8s/apps/kube-system/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ resources:
- ./reflector/ks.yaml
- ./descheduler/ks.yaml
- ./reloader/ks.yaml
- ./kubernetes-chemas/ks.yaml

0 comments on commit f9cf550

Please sign in to comment.