Compare commits
1 Commits
auto-updat
...
auto-updat
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
69c2fa0609 |
@@ -6,7 +6,7 @@ metadata:
|
||||
spec:
|
||||
project: desktop
|
||||
destination:
|
||||
namespace: khm
|
||||
namespace: default
|
||||
server: https://kubernetes.default.svc
|
||||
source:
|
||||
repoURL: ssh://git@gt.hexor.cy:30022/ab/homelab.git
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
---
|
||||
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
|
||||
@@ -6,7 +6,7 @@ metadata:
|
||||
labels:
|
||||
app: khm-client
|
||||
spec:
|
||||
schedule: "15 * * * *"
|
||||
schedule: "* * * * *"
|
||||
concurrencyPolicy: Forbid
|
||||
successfulJobsHistoryLimit: 3
|
||||
failedJobsHistoryLimit: 3
|
||||
@@ -18,7 +18,6 @@ spec:
|
||||
app: khm-client
|
||||
spec:
|
||||
restartPolicy: OnFailure
|
||||
hostNetwork: true
|
||||
nodeSelector:
|
||||
node-role.kubernetes.io/desktop: ""
|
||||
tolerations:
|
||||
@@ -26,6 +25,7 @@ spec:
|
||||
operator: Equal
|
||||
value: desktop
|
||||
effect: NoSchedule
|
||||
hostNetwork: false
|
||||
containers:
|
||||
- name: khm-client
|
||||
image: 'ultradesu/khm:latest'
|
||||
@@ -40,29 +40,18 @@ spec:
|
||||
memory: "256Mi"
|
||||
cpu: "200m"
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- |
|
||||
/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: USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: khm-client-creds
|
||||
key: USERNAME
|
||||
- name: PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: khm-client-creds
|
||||
key: PASSWORD
|
||||
- /usr/local/bin/khm
|
||||
- --known-hosts
|
||||
- /host-ssh/known_hosts
|
||||
- --host
|
||||
- https://khm.hexor.cy
|
||||
- --flow=work
|
||||
- --basic-auth=ultradesu:JiMkWGaA0UZRkzzqtdPvvE0D5vIMCrH7LZGvK2Ux6eGSWECrPlh7UH1khdEm
|
||||
- --in-place
|
||||
volumeMounts:
|
||||
- name: known-hosts
|
||||
mountPath: /host-ssh/known_hosts
|
||||
subPath: known_hosts
|
||||
volumes:
|
||||
- name: known-hosts
|
||||
hostPath:
|
||||
|
||||
@@ -2,5 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- external-secrets.yaml
|
||||
- app.yaml
|
||||
- khm-client-cronjob.yaml
|
||||
|
||||
Reference in New Issue
Block a user