generated from onedr0p/cluster-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(kube-web-view): migrate to app-template (#541)
Aligns it closer with all the other apps. Also avoids running into sporadic git errors when codeberg has small hiccups.
- Loading branch information
1 parent
4fa3687
commit 35e8c8f
Showing
5 changed files
with
122 additions
and
51 deletions.
There are no files selected for viewing
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
84 changes: 84 additions & 0 deletions
84
kubernetes/apps/monitoring/kube-web-view/app/helmrelease.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,84 @@ | ||
--- | ||
# 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: &app kube-web-view | ||
spec: | ||
interval: 2h | ||
chart: | ||
spec: | ||
chart: app-template | ||
version: 3.0.4 | ||
sourceRef: | ||
kind: HelmRepository | ||
name: bjw-s | ||
namespace: flux-system | ||
install: | ||
remediation: | ||
retries: 3 | ||
upgrade: | ||
cleanupOnFail: true | ||
remediation: | ||
retries: 3 | ||
strategy: uninstall | ||
uninstall: | ||
keepHistory: false | ||
values: | ||
controllers: | ||
kube-web-view: | ||
strategy: RollingUpdate | ||
containers: | ||
app: | ||
image: | ||
repository: hjacobs/kube-web-view | ||
tag: 23.8.0 | ||
args: | ||
- --port=8080 | ||
- --show-container-logs | ||
probes: | ||
readiness: | ||
enabled: true | ||
custom: true | ||
spec: | ||
httpGet: | ||
path: /health | ||
port: 8080 | ||
resources: | ||
limits: | ||
memory: 100Mi | ||
requests: | ||
cpu: 5m | ||
memory: 100Mi | ||
pod: | ||
securityContext: | ||
readOnlyRootFilesystem: true | ||
runAsNonRoot: true | ||
runAsUser: 1000 | ||
service: | ||
app: | ||
controller: kube-web-view | ||
ports: | ||
http: | ||
port: 8080 | ||
serviceAccount: | ||
name: *app | ||
ingress: | ||
app: | ||
enabled: true | ||
className: internal | ||
annotations: | ||
gethomepage.dev/enabled: "true" | ||
gethomepage.dev/group: Observability | ||
gethomepage.dev/icon: kubernetes.png | ||
gethomepage.dev/name: Kube Web View | ||
hosts: | ||
- host: &host kube-web-view.18b.haus | ||
paths: | ||
- path: / | ||
service: | ||
identifier: app | ||
port: http | ||
tls: | ||
- hosts: | ||
- *host |
This file was deleted.
Oops, something went wrong.
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
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,36 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: kube-web-view | ||
--- | ||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: kube-web-view | ||
rules: | ||
- apiGroups: | ||
- '*' | ||
resources: | ||
- '*' | ||
verbs: | ||
- list | ||
- get | ||
- nonResourceURLs: | ||
- '*' | ||
verbs: | ||
- list | ||
- get | ||
--- | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: &app kube-web-view | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: *app | ||
subjects: | ||
- kind: ServiceAccount | ||
name: *app | ||
namespace: monitoring |