-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4347 from tyriis/feature/it-tools
feat(it-tools): initial setup
- Loading branch information
Showing
4 changed files
with
127 additions
and
0 deletions.
There are no files selected for viewing
97 changes: 97 additions & 0 deletions
97
kubernetes/talos-flux/apps/default/it-tools/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,97 @@ | ||
--- | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json | ||
apiVersion: helm.toolkit.fluxcd.io/v2 | ||
kind: HelmRelease | ||
metadata: | ||
name: it-tools | ||
spec: | ||
interval: 30m | ||
chart: | ||
spec: | ||
chart: app-template | ||
version: 3.6.1 | ||
sourceRef: | ||
kind: HelmRepository | ||
name: bjw-s-charts | ||
namespace: flux-system | ||
install: | ||
remediation: | ||
retries: 3 | ||
upgrade: | ||
cleanupOnFail: true | ||
remediation: | ||
strategy: rollback | ||
retries: 3 | ||
|
||
values: | ||
controllers: | ||
it-tools: | ||
replicas: 1 | ||
strategy: RollingUpdate | ||
|
||
annotations: | ||
reloader.stakater.com/auto: "true" | ||
|
||
pod: | ||
securityContext: | ||
runAsUser: 1000 | ||
runAsGroup: 1000 | ||
fsGroup: 1000 | ||
fsGroupChangePolicy: "OnRootMismatch" | ||
|
||
containers: | ||
app: | ||
image: | ||
repository: ghcr.io/bjw-s-labs/it-tools | ||
tag: 2024.5.13@sha256:96408cf7d103a5a7bdbdc8d1fe23dfb95b721ca7bbdbb2507b3a7ac28416eb77 | ||
resources: | ||
requests: | ||
cpu: 5m | ||
memory: 32Mi | ||
limits: | ||
memory: 256Mi | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
capabilities: | ||
drop: | ||
- ALL | ||
readOnlyRootFilesystem: true | ||
|
||
service: | ||
app: | ||
controller: it-tools | ||
ports: | ||
http: | ||
port: 8080 | ||
|
||
ingress: | ||
app: | ||
className: traefik | ||
annotations: | ||
cert-manager.io/cluster-issuer: letsencrypt-production | ||
kubernetes.io/tls-acme: "true" | ||
traefik.ingress.kubernetes.io/router.middlewares: traefik-ingress-sso@kubernetescrd | ||
traefik.ingress.kubernetes.io/router.entrypoints: websecure | ||
traefik.ingress.kubernetes.io/affinity: "true" | ||
traefik.ingress.kubernetes.io/router.tls: "true" | ||
gethomepage.dev/enabled: "true" | ||
gethomepage.dev/description: Handy developer online tools | ||
gethomepage.dev/group: Development | ||
gethomepage.dev/icon: it-tools-light | ||
gethomepage.dev/name: IT-Tools | ||
gethomepage.dev/weight: "10" # optional | ||
hosts: | ||
- host: &host it-tools.techtales.io | ||
paths: | ||
- path: / | ||
service: | ||
identifier: app | ||
port: http | ||
tls: | ||
- hosts: | ||
- *host | ||
secretName: "{{ .Release.Name }}-tls" | ||
|
||
persistence: | ||
tmp: | ||
type: emptyDir |
6 changes: 6 additions & 0 deletions
6
kubernetes/talos-flux/apps/default/it-tools/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,6 @@ | ||
--- | ||
# yaml-language-server: $schema=https://json.schemastore.org/kustomization | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- helm-release.yaml |
23 changes: 23 additions & 0 deletions
23
kubernetes/talos-flux/apps/default/it-tools/flux-sync.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,23 @@ | ||
--- | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1 | ||
kind: Kustomization | ||
metadata: | ||
name: &appname it-tools | ||
namespace: flux-system | ||
labels: | ||
substitution.flux.home.arpa/enabled: "true" | ||
spec: | ||
targetNamespace: default | ||
commonMetadata: | ||
labels: | ||
app.kubernetes.io/name: *appname | ||
interval: 30m | ||
timeout: 5m | ||
path: ./kubernetes/talos-flux/apps/default/it-tools/app | ||
prune: true | ||
sourceRef: | ||
kind: GitRepository | ||
name: home-ops | ||
wait: true | ||
retryInterval: 1m |
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