Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JJGadgets committed Sep 30, 2024
1 parent 645099f commit 532facc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 28 deletions.
2 changes: 0 additions & 2 deletions kube/clusters/nuclear/talos/talconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@ nodes:
mtu: 9000
dhcp: false
patches:
# required for Talos to initialize i915 VFIO devices
- *i915
# FRR routing
- |-
machine:
Expand Down
43 changes: 17 additions & 26 deletions kube/templates/test/app/hr.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/common-3.4.0/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
Expand All @@ -9,7 +10,7 @@ spec:
chart:
spec:
chart: app-template
version: 3.1.0
version: 3.4.0
sourceRef:
name: bjw-s
kind: HelmRepository
Expand Down Expand Up @@ -148,7 +149,7 @@ spec:
# HTTP1.1 /v1/auth/valid: 400 Request Header Or Cookie Too Large
# HTTP2 /v1/auth/valid: HTTP/2 stream was not closed cleanly before end of the underlying stream
hosts:
- host: &host "${APP_DNS_APPNAME}"
- host: &host "${APP_DNS_APPNAME:=${APPNAME}}"
paths: &paths
- path: /
pathType: Prefix
Expand All @@ -157,29 +158,12 @@ spec:
port: http
tls:
- hosts: [*host]
tailscale:
primary: false
className: tailscale
hosts:
- host: &host "${APPNAME}.${DNS_TS}"
paths: &paths
- path: /
pathType: Prefix
service:
name: frontend
port: http
tls:
- hosts: [*host]
# dnsConfig:
# options:
# - name: ndots
# value: "1"
persistence:
config:
type: configMap
name: ${APPNAME}-config
advancedMounts:
main:
${APPNAME}:
main:
- subPath: server.toml
path: /data/server.toml
Expand All @@ -190,8 +174,8 @@ spec:
path: /data
nfs:
type: nfs
server: "${IP_TRUENAS}"
path: "${PATH_NAS_PERSIST_K8S}"
server: "${IP_TRUENAS:=127.0.0.1}"
path: "${PATH_NAS_PERSIST_K8S:=/home}"
globalMounts:
- subPath: ${APPNAME}
path: /nfs
Expand All @@ -206,7 +190,7 @@ spec:
name: ${APPNAME}-tls
defaultMode: 0400
advancedMounts:
main:
${APPNAME}:
main:
- subPath: tls.crt
path: /tls/fullchain.pem
Expand Down Expand Up @@ -238,11 +222,15 @@ spec:
automountServiceAccountToken: false
enableServiceLinks: false
hostAliases:
- ip: "${APP_IP_AUTHENTIK}"
hostnames: ["${APP_DNS_AUTHENTIK}"]
- ip: "${APP_IP_AUTHENTIK:=127.0.0.1}"
hostnames: ["${APP_DNS_AUTHENTIK:=authentik}"]
dnsConfig:
options:
- name: ndots
value: "1"
securityContext:
runAsNonRoot: true
runAsUser: &uid ${APP_UID_APPNAME}
runAsUser: &uid ${APP_UID_APPNAME:=1000}
runAsGroup: *uid
fsGroup: *uid
fsGroupChangePolicy: Always
Expand All @@ -263,8 +251,11 @@ spec:
operator: DoesNotExist
networkpolicies:
same-ns:
# either
controller: ${APPNAME}
# or
podSelector: {}
# end
policyTypes: [Ingress, Egress]
rules:
ingress: [from: [{podSelector: {}}]]
Expand Down
1 change: 1 addition & 0 deletions kube/templates/test/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ spec:
targetNamespace: "${APPNAME}"
dependsOn:
- name: 1-core-storage-volsync-app
- name: 1-core-storage-snapscheduler-app
- name: 1-core-storage-rook-ceph-cluster
postBuild:
substitute:
Expand Down

0 comments on commit 532facc

Please sign in to comment.