1 Commits

Author SHA1 Message Date
05608f843e wip: etcd: Deploy etcd 2024-07-26 21:11:40 -05:00
30 changed files with 222 additions and 475 deletions

View File

@@ -28,18 +28,3 @@ secretGenerator:
- cloudflare.api-token - cloudflare.api-token
options: options:
disableNameSuffixHash: true disableNameSuffixHash: true
patches:
- patch: |
apiVersion: apps/v1
kind: Deployment
metadata:
name: cert-manager
namespace: cert-manager
spec:
template:
spec:
dnsConfig:
nameservers:
- 172.30.0.1
dnsPolicy: None

15
etcd/certificate.yaml Normal file
View File

@@ -0,0 +1,15 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: etcd
spec:
secretName: etcd-cert
dnsNames:
- etcd.pyrocufflink.blue
issuerRef:
group: cert-manager.io
kind: ClusterIssuer
name: dch-ca
privateKey:
algorithm: ECDSA
rotationPolicy: Always

116
etcd/etcd.yaml Normal file
View File

@@ -0,0 +1,116 @@
apiVersion: v1
kind: Service
metadata:
name: etcd
labels: &labels
app.kubernetes.io/name: etcd
app.kubernetes.io/component: etcd
spec:
type: NodePort
selector: *labels
ports:
- name: etcd
port: 2379
nodePort: 32379
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: etcd
labels: &labels
app.kubernetes.io/name: etcd
app.kubernetes.io/component: etcd
spec:
replicas: 3
serviceName: etcd
podManagementPolicy: Parallel
selector:
matchLabels: *labels
template:
metadata:
labels: *labels
spec:
enableServiceLinks: false
containers:
- name: etcd
image: gcr.io/etcd-development/etcd:v3.5.15
command:
- etcd
args:
- --name=$(HOSTNAME)
- --listen-client-urls=https://0.0.0.0:2379
- --advertise-client-urls=https://0.0.0.0:32379
- --listen-peer-urls=https://0.0.0.0:2380
- --initial-advertise-peer-urls=https://$(POD_IP):2380
- --initial-cluster=etcd-0=https://etcd-0.etcd:2380,etcd-1=https://etcd-1.etcd:2380,etcd-2=https://etcd-2.etcd:2380
- --initial-cluster-state=new
- --peer-auto-tls
- --client-cert-auth
- --cert-file=/run/secrets/etcd/certificate/tls.crt
- --key-file=/run/secrets/etcd/certificate/tls.key
- --trusted-ca-file=/run/dch-ca/dch-root-ca.crt
env:
- name: HOSTNAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
ports:
- name: etcd-client
containerPort: 2379
- name: etcd-peer
containerPort: 2380
readinessProbe: &probe
tcpSocket:
port: 2379
periodSeconds: 60
timeoutSeconds: 5
failureThreshold: 3
successThreshold: 1
startupProbe:
<<: *probe
periodSeconds: 1
timeoutSeconds: 1
failureThreshold: 30
securityContext:
readOnlyRootFilesystem: true
volumeMounts:
- mountPath: /run/dch-ca
name: dch-ca
readOnly: true
- mountPath: /run/secrets/etcd/certificate
name: cert
readOnly: true
- mountPath: /var/lib/etcd
name: data
subPath: data
securityContext:
fsGroup: 2379
fsGroupChangePolicy: OnRootMismatch
runAsGroup: 2379
runAsNonRoot: true
runAsUser: 2379
volumes:
- name: cert
secret:
secretName: etcd-cert
defaultMode: 0440
- name: dch-ca
configMap:
name: dch-root-ca
volumeClaimTemplates:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: data
labels: *labels
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 4G

15
etcd/kustomization.yaml Normal file
View File

@@ -0,0 +1,15 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
labels:
- pairs:
app.kubernetes.io/instance: etcd
app.kubernetes.io/part-of: etcd
namespace: etcd
resources:
- namespace.yaml
- certificate.yaml
- etcd.yaml
- ../dch-root-ca

7
etcd/namespace.yaml Normal file
View File

@@ -0,0 +1,7 @@
apiVersion: v1
kind: Namespace
metadata:
name: etcd
labels:
app.kubernetes.io/name: etcd
app.kubernetes.io/component: etcd

View File

@@ -41,10 +41,6 @@ configMapGenerator:
files: files:
- mosquitto.conf - mosquitto.conf
- name: zigbee2mqtt
envs:
- zigbee2mqtt.env
patches: patches:
- patch: |- - patch: |-
apiVersion: apps/v1 apiVersion: apps/v1

View File

@@ -1 +0,0 @@
ZIGBEE2MQTT_CONFIG_MQTT_SERVER=mqtts://mqtt.pyrocufflink.blue:8883

View File

@@ -61,10 +61,6 @@ spec:
containers: containers:
- name: zigbee2mqtt - name: zigbee2mqtt
image: docker.io/koenkk/zigbee2mqtt:1.33.1 image: docker.io/koenkk/zigbee2mqtt:1.33.1
envFrom:
- configMapRef:
name: zigbee2mqtt
optional: true
ports: ports:
- containerPort: 8080 - containerPort: 8080
name: http name: http

View File

@@ -5,8 +5,6 @@ metadata:
labels: labels:
app.kubernetes.io/name: invoice-ninja app.kubernetes.io/name: invoice-ninja
app.kubernetes.io/component: invoice-ninja app.kubernetes.io/component: invoice-ninja
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 40m
spec: spec:
rules: rules:
- host: invoiceninja.pyrocufflink.blue - host: invoiceninja.pyrocufflink.blue

18
invoice-ninja/init.sh Normal file
View File

@@ -0,0 +1,18 @@
#!/bin/sh
set -e
cp -r /var/www/app/. /app
# The Invoice Ninja logo on PDF invoices is always loaded from upstream's
# server, despite the APP_URL setting.
sed -i \
-e 's@invoicing.co/images/new_logo.png@invoiceninja.pyrocufflink.blue/images/logo.png@' \
/app/app/Utils/HtmlEngine.php
chown -R invoiceninja:invoiceninja /app
if [ "$(stat -c %u /storage)" -ne "$(id -u invoiceninja)" ]; then
chown -R invoiceninja:invoiceninja /storage
chmod -R u=rwx,go= /storage
fi

View File

@@ -54,11 +54,33 @@ spec:
app.kubernetes.io/component: invoice-ninja app.kubernetes.io/component: invoice-ninja
app.kubernetes.io/part-of: invoice-ninja app.kubernetes.io/part-of: invoice-ninja
spec: spec:
containers: initContainers:
- name: invoice-ninja - name: init
image: &image docker.io/invoiceninja/invoiceninja:5.8.16 image: &image docker.io/invoiceninja/invoiceninja:5.8.16
command: command:
- /start.sh - /init.sh
securityContext:
capabilities:
drop:
- ALL
add:
- CHOWN
readOnlyRootFilesystem: true
runAsGroup: 0
runAsNonRoot: false
runAsUser: 0
volumeMounts:
- mountPath: /app
name: app
- mountPath: /init.sh
name: init
subPath: init.sh
- mountPath: /storage
name: data
subPath: storage
containers:
- name: invoice-ninja
image: *image
env: &env env: &env
- name: DB_HOST - name: DB_HOST
value: invoice-ninja-db value: invoice-ninja-db
@@ -85,19 +107,17 @@ spec:
<<: *probe <<: *probe
periodSeconds: 1 periodSeconds: 1
failureThreshold: 60 failureThreshold: 60
securityContext:
readOnlyRootFilesystem: true
volumeMounts: &mounts volumeMounts: &mounts
- mountPath: /run/secrets/invoiceninja - mountPath: /run/secrets/invoiceninja
name: secrets name: secrets
readOnly: true readOnly: true
- mountPath: /start.sh
name: init
subPath: start.sh
- mountPath: /tmp - mountPath: /tmp
name: tmp name: tmp
subPath: tmp subPath: tmp
- mountPath: /var/www/app/public - mountPath: /var/www/app
name: data name: app
subPath: public
- mountPath: /var/www/app/public/storage - mountPath: /var/www/app/public/storage
name: data name: data
subPath: storage-public subPath: storage-public
@@ -136,7 +156,7 @@ spec:
- mountPath: /var/cache/nginx - mountPath: /var/cache/nginx
name: nginx-cache name: nginx-cache
- mountPath: /var/www/app/public - mountPath: /var/www/app/public
name: data name: app
subPath: public subPath: public
readOnly: true readOnly: true
- mountPath: /var/www/app/public/storage - mountPath: /var/www/app/public/storage
@@ -172,8 +192,6 @@ spec:
- invoice-ninja-db - invoice-ninja-db
securityContext: securityContext:
runAsNonRoot: True runAsNonRoot: True
fsGroup: 1500
fsGroupChangePolicy: OnRootMismatch
seccompProfile: seccompProfile:
type: RuntimeDefault type: RuntimeDefault
volumes: volumes:

View File

@@ -20,7 +20,6 @@ configMapGenerator:
- name: invoice-ninja-init - name: invoice-ninja-init
files: files:
- init.sh - init.sh
- start.sh
- name: invoice-ninja - name: invoice-ninja
envs: envs:

View File

@@ -37,8 +37,6 @@ http {
charset utf-8; charset utf-8;
client_max_body_size 0;
location / { location / {
try_files $uri $uri/ /index.php?$query_string; try_files $uri $uri/ /index.php?$query_string;
} }

View File

@@ -1,11 +0,0 @@
#!/bin/sh
set -e
# The Invoice Ninja logo on PDF invoices is always loaded from upstream's
# server, despite the APP_URL setting.
sed -i \
-e 's@invoicing.co/images/new_logo.png@invoiceninja.pyrocufflink.blue/images/logo.png@' \
/var/www/app/app/Utils/HtmlEngine.php
exec /usr/local/bin/docker-entrypoint supervisord

View File

@@ -1,30 +0,0 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: jenkins
namespace: sshca
rules:
- apiGroups:
- apps
resources:
- deployments
resourceNames:
- sshca
verbs:
- get
- patch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: jenkins
namespace: sshca
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: jenkins
subjects:
- kind: ServiceAccount
name: default
namespace: jenkins-jobs

View File

@@ -1,25 +0,0 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: step-ca
labels:
app.kubernetes.io/name: step-ca
app.kubernetes.io/component: step-ca
app.kubernetes.io/part-of: step-ca
annotations:
nginx.ingress.kubernetes.io/backend-protocol: HTTPS
nginx.ingress.kubernetes.io/configuration-snippet: |
proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
spec:
ingressClassName: nginx
rules:
- host: ca.pyrocufflink.blue
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: step-ca
port:
name: step-ca

View File

@@ -21,18 +21,3 @@ configMapGenerator:
files: files:
- root_ca.crt - root_ca.crt
- intermediate_ca.crt - intermediate_ca.crt
patches:
- patch: |
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: step-ca
namespace: step-ca
spec:
template:
spec:
dnsConfig:
nameservers:
- 172.30.0.1
dnsPolicy: None

View File

@@ -17,11 +17,6 @@ route:
- '...' - '...'
receiver: ntfy receiver: ntfy
routes: routes:
- receiver: ntfy
matchers:
- alertname=DiskUsage
group_by:
- instance
- receiver: ntfy - receiver: ntfy
matchers: matchers:
- alertgroup=Frigate - alertgroup=Frigate

View File

@@ -148,14 +148,3 @@ groups:
expr: >- expr: >-
{__name__=~"collectd_.*_temperature", sensors!~"i350bb.*"} > 80 {__name__=~"collectd_.*_temperature", sensors!~"i350bb.*"} > 80
for: 10m for: 10m
- name: Longhorn
rules:
- alert: Degraded Volumes
expr: >-
count(longhorn_volume_robustness==2) > 0
for: 1h
- alert: Faulted Volumes
expr: >-
count(longhorn_volume_robustness==3) > 0
for: 5m

View File

@@ -60,6 +60,7 @@ scrape_configs:
- http://pyrocufflink.net/ - http://pyrocufflink.net/
- http://ebonfire.com/ - http://ebonfire.com/
- http://chmod777.sh/ - http://chmod777.sh/
- https://hatch.chat/_matrix/client/versions
- https://nextcloud.pyrocufflink.net/ - https://nextcloud.pyrocufflink.net/
- https://bitwarden.pyrocufflink.blue/ - https://bitwarden.pyrocufflink.blue/
- https://git.pyrocufflink.blue/ - https://git.pyrocufflink.blue/
@@ -83,7 +84,8 @@ scrape_configs:
- loki0.pyrocufflink.blue - loki0.pyrocufflink.blue
- nut0.pyrocufflink.blue - nut0.pyrocufflink.blue
- nvr2.pyrocufflink.blue - nvr2.pyrocufflink.blue
- unifi3.pyrocufflink.blue - serial1.pyrocufflink.blue
- unifi2.pyrocufflink.blue
- vmhost0.pyrocufflink.blue - vmhost0.pyrocufflink.blue
- vmhost1.pyrocufflink.blue - vmhost1.pyrocufflink.blue
file_sd_configs: file_sd_configs:
@@ -213,6 +215,11 @@ scrape_configs:
target_label: __address__ target_label: __address__
replacement: '$1:9000' replacement: '$1:9000'
- job_name: unifi
static_configs:
- targets:
- unifi.pyrocufflink.blue:9130
- job_name: jenkins - job_name: jenkins
metrics_path: /prometheus/ metrics_path: /prometheus/
scheme: https scheme: https
@@ -285,7 +292,9 @@ scrape_configs:
- targets: - targets:
- loki0.pyrocufflink.blue - loki0.pyrocufflink.blue
- nut0.pyrocufflink.blue - nut0.pyrocufflink.blue
- unifi3.pyrocufflink.blue - nvr2.pyrocufflink.blue
- serial1.pyrocufflink.blue
- unifi2.pyrocufflink.blue
kubernetes_sd_configs: kubernetes_sd_configs:
- role: node - role: node
relabel_configs: relabel_configs:
@@ -321,7 +330,8 @@ scrape_configs:
- loki0.pyrocufflink.blue - loki0.pyrocufflink.blue
- nut0.pyrocufflink.blue - nut0.pyrocufflink.blue
- nvr2.pyrocufflink.blue - nvr2.pyrocufflink.blue
- unifi3.pyrocufflink.blue - serial1.pyrocufflink.blue
- unifi2.pyrocufflink.blue
kubernetes_sd_configs: kubernetes_sd_configs:
- role: pod - role: pod
namespaces: namespaces:

View File

@@ -1,86 +0,0 @@
internet: "" {
shape: cloud
fastmail: FastMail {
icon: "fastmail.png"
icon.near: top-left
label.near: bottom-center
}
fastmail.dustin: "Dustin's Mailbox" {
shape: stored_data
}
fastmail.tabitha: "Tabitha's Mailbox" {
shape: stored_data
}
chase: Chase
chase -> fastmail.dustin
hsa_bank: HSA Bank
hsa_bank -> fastmail.dustin
commerce: Commerce Bank
commerce -> fastmail.dustin
commerce -> fastmail.tabitha
}
receiver: JMAP Receiver {
icon: rust-logo-blk.svg
shape: step
}
processor: Processor {
icon: rust-logo-blk.svg
shape: step
}
rules: "Processor\nRules" {
shape: page
}
firefly_importer: Firefly III Importer {
icon: rust-logo-blk.svg
shape: step
}
invoiceninja_importer: Invoice Ninja Importer {
icon: rust-logo-blk.svg
shape: step
}
firefly: Firefly III {
icon: firefly-iii.png
}
invoiceninja: Invoice Ninja {
icon: invoiceninja.png
}
rabbitmq: RabbitMQ {
icon: rabbitmq-logo.svg
label.near: bottom-center
shape: queue
}
internet.fastmail.dustin -> receiver
internet.fastmail.tabitha -> receiver
receiver -> rabbitmq: xactmon.notifications.default
receiver -> rabbitmq: xactmon.notifications.hlc
rabbitmq -> processor: "xactmon.notifications.#"
processor -> rabbitmq: xactmon.transactions.default
processor -> rabbitmq: xactmon.transactions.hlc
rabbitmq -> firefly_importer: xactmon.transactions.default
rabbitmq -> invoiceninja_importer: xactmon.transactions.hlc
firefly_importer -> firefly: Personal Finance
invoiceninja_importer -> invoiceninja: Business Expenses
rules -> processor

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 264 KiB

View File

@@ -1,25 +1,16 @@
processor_rules = "/etc/xactmon/rules.toml" processor_rules = "/etc/xactmon/rules.toml"
[[jmap]] [jmap]
name = "default" url = "https://api.fastmail.com"
token_file = "/run/secrets/xactmon/fastmail.token" token_file = "/run/secrets/xactmon/fastmail.token"
[[jmap]]
name = "hlc"
token_file = "/run/secrets/xactmon/hlc.fastmail.token"
mailbox_name = "NEW/CommerceBank Alerts"
[amqp] [amqp]
url = "amqps://xactmon@rabbitmq.pyrocufflink.blue?auth_mechanism=external" url = "amqps://xactmon@rabbitmq.pyrocufflink.blue?auth_mechanism=external"
clientcert = "/run/secrets/rabbitmq/cert/keystore.p12" clientcert = "/run/secrets/rabbitmq/cert/keystore.p12"
clientcert_password = "/run/secrets/rabbitmq/password" clientcert_password = "/run/secrets/rabbitmq/password"
cacert = "/run/dch-ca/dch-root-ca.crt" cacert = "/run/dch-ca/dch-root-ca.crt"
[firefly.default] [firefly]
url = "https://firefly.pyrocufflink.blue" url = "https://firefly.pyrocufflink.blue"
token_file = "/run/secrets/xactmon/firefly.token" token_file = "/run/secrets/xactmon/firefly.token"
error_if_duplicate_hash = false error_if_duplicate_hash = false
[invoiceninja.hlc]
url = "https://invoiceninja.pyrocufflink.blue"
token_file = "/run/secrets/xactmon/invoiceninja.token"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

View File

@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg width="500" height="500" viewBox="0 0 132.29167 132.29166" version="1.1" id="svg1" inkscape:version="1.3 (0e150ed6c4, 2023-07-21)" sodipodi:docname="logo-rabbitmq.svg" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview id="namedview1" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:showpageshadow="2" inkscape:pageopacity="0.0" inkscape:pagecheckerboard="0" inkscape:deskcolor="#d1d1d1" inkscape:document-units="mm" inkscape:zoom="0.7338665" inkscape:cx="-150.57235" inkscape:cy="293.65014" inkscape:window-width="1916" inkscape:window-height="1029" inkscape:window-x="0" inkscape:window-y="0" inkscape:window-maximized="1" inkscape:current-layer="layer1"/>
<defs id="defs1"/>
<g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" transform="translate(-76.200105,-115.62292)">
<g id="g1" transform="matrix(3.3139169,0,0,3.3139169,76.216727,114.23118)" style="stroke-width:0.0798401">
<path class="cls-2" d="M 39.42,17.37 H 26.65 a 1.59,1.59 0 0 1 -1.6,-1.6 V 3 A 1.59,1.59 0 0 0 23.45,1.41 H 18.67 A 1.59,1.59 0 0 0 17.07,3 v 12.77 a 1.59,1.59 0 0 1 -1.6,1.6 h -4.78 a 1.59,1.59 0 0 1 -1.6,-1.6 V 3 A 1.59,1.59 0 0 0 7.49,1.4 H 2.7 A 1.59,1.59 0 0 0 1.11,3 v 36.72 a 1.59,1.59 0 0 0 1.6,1.6 h 36.71 a 1.59,1.59 0 0 0 1.6,-1.6 V 19 a 1.59,1.59 0 0 0 -1.6,-1.63 z M 33,30.93 a 2.39,2.39 0 0 1 -2.39,2.4 h -3.2 a 2.39,2.39 0 0 1 -2.39,-2.4 v -3.19 a 2.39,2.39 0 0 1 2.39,-2.4 h 3.2 a 2.39,2.39 0 0 1 2.39,2.4 z" transform="translate(-1.11,-0.98)" id="path10" style="fill:#ff6600;stroke-width:0.0798401"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -1 +0,0 @@
<svg height="144" width="144" xmlns="http://www.w3.org/2000/svg"><path d="m71.05 23.68c-26.06 0-47.27 21.22-47.27 47.27s21.22 47.27 47.27 47.27 47.27-21.22 47.27-47.27-21.22-47.27-47.27-47.27zm-.07 4.2a3.1 3.11 0 0 1 3.02 3.11 3.11 3.11 0 0 1 -6.22 0 3.11 3.11 0 0 1 3.2-3.11zm7.12 5.12a38.27 38.27 0 0 1 26.2 18.66l-3.67 8.28c-.63 1.43.02 3.11 1.44 3.75l7.06 3.13a38.27 38.27 0 0 1 .08 6.64h-3.93c-.39 0-.55.26-.55.64v1.8c0 4.24-2.39 5.17-4.49 5.4-2 .23-4.21-.84-4.49-2.06-1.18-6.63-3.14-8.04-6.24-10.49 3.85-2.44 7.85-6.05 7.85-10.87 0-5.21-3.57-8.49-6-10.1-3.42-2.25-7.2-2.7-8.22-2.7h-40.6a38.27 38.27 0 0 1 21.41-12.08l4.79 5.02c1.08 1.13 2.87 1.18 4 .09zm-44.2 23.02a3.11 3.11 0 0 1 3.02 3.11 3.11 3.11 0 0 1 -6.22 0 3.11 3.11 0 0 1 3.2-3.11zm74.15.14a3.11 3.11 0 0 1 3.02 3.11 3.11 3.11 0 0 1 -6.22 0 3.11 3.11 0 0 1 3.2-3.11zm-68.29.5h5.42v24.44h-10.94a38.27 38.27 0 0 1 -1.24-14.61l6.7-2.98c1.43-.64 2.08-2.31 1.44-3.74zm22.62.26h12.91c.67 0 4.71.77 4.71 3.8 0 2.51-3.1 3.41-5.65 3.41h-11.98zm0 17.56h9.89c.9 0 4.83.26 6.08 5.28.39 1.54 1.26 6.56 1.85 8.17.59 1.8 2.98 5.4 5.53 5.4h16.14a38.27 38.27 0 0 1 -3.54 4.1l-6.57-1.41c-1.53-.33-3.04.65-3.37 2.18l-1.56 7.28a38.27 38.27 0 0 1 -31.91-.15l-1.56-7.28c-.33-1.53-1.83-2.51-3.36-2.18l-6.43 1.38a38.27 38.27 0 0 1 -3.32-3.92h31.27c.35 0 .59-.06.59-.39v-11.06c0-.32-.24-.39-.59-.39h-9.15zm-14.43 25.33a3.11 3.11 0 0 1 3.02 3.11 3.11 3.11 0 0 1 -6.22 0 3.11 3.11 0 0 1 3.2-3.11zm46.05.14a3.11 3.11 0 0 1 3.02 3.11 3.11 3.11 0 0 1 -6.22 0 3.11 3.11 0 0 1 3.2-3.11z"/><path d="m115.68 70.95a44.63 44.63 0 0 1 -44.63 44.63 44.63 44.63 0 0 1 -44.63-44.63 44.63 44.63 0 0 1 44.63-44.63 44.63 44.63 0 0 1 44.63 44.63zm-.84-4.31 6.96 4.31-6.96 4.31 5.98 5.59-7.66 2.87 4.78 6.65-8.09 1.32 3.4 7.46-8.19-.29 1.88 7.98-7.98-1.88.29 8.19-7.46-3.4-1.32 8.09-6.65-4.78-2.87 7.66-5.59-5.98-4.31 6.96-4.31-6.96-5.59 5.98-2.87-7.66-6.65 4.78-1.32-8.09-7.46 3.4.29-8.19-7.98 1.88 1.88-7.98-8.19.29 3.4-7.46-8.09-1.32 4.78-6.65-7.66-2.87 5.98-5.59-6.96-4.31 6.96-4.31-5.98-5.59 7.66-2.87-4.78-6.65 8.09-1.32-3.4-7.46 8.19.29-1.88-7.98 7.98 1.88-.29-8.19 7.46 3.4 1.32-8.09 6.65 4.78 2.87-7.66 5.59 5.98 4.31-6.96 4.31 6.96 5.59-5.98 2.87 7.66 6.65-4.78 1.32 8.09 7.46-3.4-.29 8.19 7.98-1.88-1.88 7.98 8.19-.29-3.4 7.46 8.09 1.32-4.78 6.65 7.66 2.87z" fill-rule="evenodd" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="3"/></svg>

Before

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -29,10 +29,8 @@ metadata:
app.kubernetes.io/component: xactmon app.kubernetes.io/component: xactmon
spec: spec:
encryptedData: encryptedData:
fastmail.token: AgAv9tf/jBhwvJVQA+B0U/je6Pb+rzaCRLdq/KXYO3dOOnGx7Hc8vCnGvSFlM7jlDLxXBWtny4cjFJwj0QkI/YwVzpMzYP2FXJ6GPui1BzL7pTSwHx/9wyYxP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Tanltwb+yLKoak3rlnOpFgWoA7YFMl3Mzk7H46BTr0deiyJSRzia4KUla1SxL7uBkND41+9IqjH5DNTmtXOz320uvHzg0cLGAKyU5zAxa/YLDHNZNybgoaBcOQRlfNaWQcZJNLGh13tQYKt01+InJ4wWwaEp4FqmfOq/LUZWJDobYU0hlDI02vVKA7B9VwWge4/EZOW5HKoeACVtpozCS3rgqKM55ddv/4Da7EKTzCqyS+Ax6+3KNMDma27wXw/ci/wSTaRUOnaqnBlxUjeVWkHoZXBFBqGLxmI7aXLmER7/llqZDobj2NzdqVQCeW8Gyno3q3AtW6DggKBBVsj/H4+TWodmGj2Y/UhsftDm2XCqEIUL9RgIHrRuwjRuU+fM/Pm/xsb08tDD3c1zFAFPHSMdQ53jQOtaY062E7x5a264XohzY1P5lSL2ypTI12S3sKJJdylBFwAT5gGJXk8boSFdEXqMeyk98NR8pi5RC6782ERJlnJ0Mw13uP0Fmj29pKIJK0bSSYJtRk/Hr6ShhbbaB5BvtvHVAGSz6k7oD33sCnJvd2fPFlKyp41HCBWHAOPo3rCfMzkMDgxQr2voqua13HlY7WtLXGft762rAXIguzR2rvpDzPs1bnkJZLhU4Cow5R9m1U4MU81i556lrcxJl1DTOXt78koT87TDaEzipINgk/G/jb7g8GW
template: template:
metadata: metadata:
name: xactmon name: xactmon

View File

@@ -22,9 +22,8 @@ spec:
imagePullPolicy: Always imagePullPolicy: Always
args: args:
- receiver-jmap - receiver-jmap
- /etc/xactmon/config.toml
env: env:
- name: XACTMON_CONFIG
value: /etc/xactmon/config.toml
- name: RUST_LOG - name: RUST_LOG
value: xactmon=trace,info value: xactmon=trace,info
- name: TZ - name: TZ
@@ -103,9 +102,8 @@ spec:
imagePullPolicy: Always imagePullPolicy: Always
args: args:
- processor - processor
- /etc/xactmon/config.toml
env: env:
- name: XACTMON_CONFIG
value: /etc/xactmon/config.toml
- name: RUST_LOG - name: RUST_LOG
value: xactmon=trace,info value: xactmon=trace,info
- name: TZ - name: TZ
@@ -184,92 +182,8 @@ spec:
imagePullPolicy: Always imagePullPolicy: Always
args: args:
- importer-firefly - importer-firefly
- default - /etc/xactmon/config.toml
env: env:
- name: XACTMON_CONFIG
value: /etc/xactmon/config.toml
- name: RUST_LOG
value: xactmon=trace,info
- name: TZ
value: America/Chicago
volumeMounts:
- mountPath: /etc/xactmon
name: xactmon-config
readOnly: true
- mountPath: /run/dch-ca
name: dch-ca
readOnly: true
- mountPath: /run/secrets/xactmon
name: xactmon-secrets
readOnly: true
- mountPath: /run/secrets/rabbitmq/password
name: rabbitmq-cert-password
subPath: password
readOnly: true
- mountPath: /run/secrets/rabbitmq/cert
name: rabbitmq-cert
readOnly: true
- mountPath: /tmp
name: tmp
subPath: tmp
imagePullSecrets:
- name: imagepull-gitea
securityContext:
runAsUser: 251
runAsGroup: 251
fsGroup: 251
volumes:
- name: dch-ca
configMap:
name: dch-root-ca
- name: rabbitmq-cert
secret:
secretName: rabbitmq-cert
defaultMode: 0440
- name: rabbitmq-cert-password
secret:
secretName: rabbitmq-cert-password
defaultMode: 0440
- name: tmp
emptyDir:
medium: Memory
- name: xactmon-config
configMap:
name: xactmon
- name: xactmon-secrets
secret:
secretName: xactmon
defaultMode: 0440
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: xactmon-importer-invoiceninja
labels:
app.kubernetes.io/name: xactmon-importer-invoiceninja
app.kubernetes.io/component: importer-invoiceninja
spec:
selector:
matchLabels:
app.kubernetes.io/name: xactmon-importer-invoiceninja
app.kubernetes.io/component: importer-invoiceninja
template:
metadata:
labels:
app.kubernetes.io/name: xactmon-importer-invoiceninja
app.kubernetes.io/component: importer-invoiceninja
spec:
containers:
- name: importer-invoiceninja
image: git.pyrocufflink.net/packages/xactmon
imagePullPolicy: Always
args:
- importer-invoiceninja
- hlc
env:
- name: XACTMON_CONFIG
value: /etc/xactmon/config.toml
- name: RUST_LOG - name: RUST_LOG
value: xactmon=trace,info value: xactmon=trace,info
- name: TZ - name: TZ