change application name and deployment location
This commit is contained in:
35
cluster/applications/signal-cli/application.yaml
Normal file
35
cluster/applications/signal-cli/application.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# Platform: connections (Signal Gateway)
|
||||
# Theme: epcot-connections (EPCOT: Communication & World Showcase)
|
||||
# Wave 8 — Signal-cli REST API for Hermes notifications
|
||||
# ------------------------------------------------------------------------------
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: signal-cli
|
||||
namespace: argocd
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "8"
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://gitea.mk-labs.cloud/rblundon/homelab.git
|
||||
targetRevision: main
|
||||
path: cluster/applications/signal-cli
|
||||
directory:
|
||||
exclude: "application.yaml"
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: connections
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
retry:
|
||||
limit: 5
|
||||
backoff:
|
||||
duration: 5s
|
||||
factor: 2
|
||||
maxDuration: 3m
|
||||
63
cluster/applications/signal-cli/deployment.yaml
Normal file
63
cluster/applications/signal-cli/deployment.yaml
Normal file
@@ -0,0 +1,63 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: signal-cli-rest-api
|
||||
namespace: connections
|
||||
labels:
|
||||
app.kubernetes.io/name: signal-cli-rest-api
|
||||
app.kubernetes.io/component: messaging-gateway
|
||||
app.kubernetes.io/version: "0.85" # Pin version initially
|
||||
spec:
|
||||
replicas: 1 # MUST be 1 - signal-cli state is not multi-instance safe
|
||||
strategy:
|
||||
type: Recreate # Prevents dual mount of PVC
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: signal-cli-rest-api
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: signal-cli-rest-api
|
||||
app.kubernetes.io/component: messaging-gateway
|
||||
spec:
|
||||
containers:
|
||||
- name: signal-cli-rest-api
|
||||
image: bbernhard/signal-cli-rest-api:0.85 # Pin version, test upgrades
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
name: http
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: MODE
|
||||
value: "json-rpc" # json-rpc mode for API compatibility
|
||||
volumeMounts:
|
||||
- name: signal-data
|
||||
mountPath: /home/.local/share/signal-cli
|
||||
resources:
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
cpu: "500m"
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /v1/health
|
||||
port: 8080
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 3
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /v1/health
|
||||
port: 8080
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 2
|
||||
volumes:
|
||||
- name: signal-data
|
||||
persistentVolumeClaim:
|
||||
claimName: signal-cli-data
|
||||
11
cluster/applications/signal-cli/namespace.yaml
Normal file
11
cluster/applications/signal-cli/namespace.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: signal-cli
|
||||
labels:
|
||||
app.kubernetes.io/name: signal-cli
|
||||
app.kubernetes.io/component: messaging-gateway
|
||||
theme: epcot
|
||||
pod-security.kubernetes.io/enforce: baseline
|
||||
pod-security.kubernetes.io/audit: baseline
|
||||
pod-security.kubernetes.io/warn: baseline
|
||||
16
cluster/applications/signal-cli/persistentvolumeclaim.yaml
Normal file
16
cluster/applications/signal-cli/persistentvolumeclaim.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: signal-cli-data
|
||||
namespace: connections
|
||||
labels:
|
||||
app.kubernetes.io/name: signal-cli
|
||||
app.kubernetes.io/component: storage
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: nfs-emporium # NFS CSI storage class
|
||||
resources:
|
||||
requests:
|
||||
storage: 2Gi # signal-cli state is small, 2Gi provides headroom
|
||||
volumeMode: Filesystem
|
||||
17
cluster/applications/signal-cli/service.yaml
Normal file
17
cluster/applications/signal-cli/service.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: connections
|
||||
namespace: connections
|
||||
labels:
|
||||
app.kubernetes.io/name: connections
|
||||
app.kubernetes.io/component: messaging-gateway
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 8080
|
||||
targetPort: 8080
|
||||
protocol: TCP
|
||||
name: http
|
||||
selector:
|
||||
app.kubernetes.io/name: signal-cli-rest-api
|
||||
Reference in New Issue
Block a user