Compare commits

..

7 Commits

Author SHA1 Message Date
Gitea Actions Bot
39ec3cc87c Auto-update README with current k8s applications
All checks were successful
Terraform / Terraform (pull_request) Successful in 32s
Generated by CI/CD workflow on 2025-12-28 13:02:44

This PR updates the README.md file with the current list of applications found in the k8s/ directory structure.
2025-12-28 13:02:44 +00:00
bd997082e9 Fixed KHM desktop
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 8s
Check with kubeconform / lint (push) Successful in 19s
Auto-update README / Generate README and Create MR (push) Successful in 7s
2025-12-28 13:02:06 +00:00
0689b6abc8 Fixed KHM desktop
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 7s
Check with kubeconform / lint (push) Successful in 10s
Auto-update README / Generate README and Create MR (push) Successful in 6s
2025-12-28 12:57:40 +00:00
bbeac646e9 Fixed KHM desktop
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 7s
Check with kubeconform / lint (push) Successful in 12s
Auto-update README / Generate README and Create MR (push) Successful in 6s
2025-12-28 12:56:37 +00:00
5d4d620681 Fixed KHM desktop
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 8s
Check with kubeconform / lint (push) Successful in 11s
Auto-update README / Generate README and Create MR (push) Successful in 6s
2025-12-28 12:54:06 +00:00
5cf2a32ca0 Fixed KHM desktop
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 8s
Check with kubeconform / lint (push) Successful in 11s
Auto-update README / Generate README and Create MR (push) Successful in 6s
2025-12-28 12:45:47 +00:00
35c072471a Fixed KHM desktop
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 8s
Check with kubeconform / lint (push) Successful in 12s
Auto-update README / Generate README and Create MR (push) Successful in 7s
2025-12-28 12:43:47 +00:00
4 changed files with 61 additions and 13 deletions

View File

@@ -6,7 +6,7 @@ metadata:
spec:
project: desktop
destination:
namespace: default
namespace: khm
server: https://kubernetes.default.svc
source:
repoURL: ssh://git@gt.hexor.cy:30022/ab/homelab.git

View File

@@ -0,0 +1,33 @@
---
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: khm-client-creds
spec:
target:
name: khm-client-creds
deletionPolicy: Delete
template:
type: Opaque
data:
USERNAME: |-
{{ .username }}
PASSWORD: |-
{{ .password }}
data:
- secretKey: username
sourceRef:
storeRef:
name: vaultwarden-login
kind: ClusterSecretStore
remoteRef:
key: 19c06480-0814-4d1f-aa80-710105989188
property: login.username
- secretKey: password
sourceRef:
storeRef:
name: vaultwarden-login
kind: ClusterSecretStore
remoteRef:
key: 19c06480-0814-4d1f-aa80-710105989188
property: login.password

View File

@@ -25,7 +25,6 @@ spec:
operator: Equal
value: desktop
effect: NoSchedule
hostNetwork: false
containers:
- name: khm-client
image: 'ultradesu/khm:latest'
@@ -40,19 +39,35 @@ spec:
memory: "256Mi"
cpu: "200m"
command:
- /usr/local/bin/khm
- --known-hosts
- /host-ssh/known_hosts
- --host
- https://khm.hexor.cy
- --flow=work
- --basic-auth=ultradesu:JiMkWGaA0UZRkzzqtdPvvE0D5vIMCrH7LZGvK2Ux6eGSWECrPlh7UH1khdEm
- --in-place
- /bin/sh
- -c
- |
hostname "$NODE_NAME"
/usr/local/bin/khm \
--known-hosts /host-ssh/known_hosts \
--host https://khm.hexor.cy \
--flow=private \
--basic-auth="${USERNAME}:${PASSWORD}" \
--in-place
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: USERNAME
valueFrom:
secretKeyRef:
name: khm-client-creds
key: USERNAME
- name: PASSWORD
valueFrom:
secretKeyRef:
name: khm-client-creds
key: PASSWORD
volumeMounts:
- name: known-hosts
mountPath: /host-ssh/known_hosts
subPath: known_hosts
volumes:
- name: known-hosts
hostPath:
path: /Users/ab/.ssh/known_hosts
path: /home/ab/.ssh/known_hosts

View File

@@ -2,5 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- app.yaml
- external-secrets.yaml
- khm-client-cronjob.yaml