k8s hlaeja device configuration

This commit is contained in:
2025-07-23 13:03:34 +02:00
committed by swordsteel
parent a1038e9afc
commit 1a18ef90e4
5 changed files with 126 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: Secret
metadata:
name: device-configuration
namespace: hlaeja
labels:
app: device-configuration
environment: testing
tier: backend
type: Opaque
stringData:
SPRING_CASSANDRA_PASSWORD: "password"

View File

@@ -0,0 +1,13 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: device-configuration
namespace: hlaeja
labels:
app: device-configuration
environment: testing
tier: backend
data:
SPRING_PROFILES_ACTIVE: "testing"
SPRING_CASSANDRA_USERNAME: "cassandra"
SPRING_CASSANDRA_CONTACT_POINTS: "cassandra"

View File

@@ -0,0 +1,32 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: device-configuration
namespace: hlaeja
labels:
app: device-configuration
environment: testing
tier: backend
spec:
replicas: 1
selector:
matchLabels:
app: device-configuration
template:
metadata:
labels:
app: device-configuration
spec:
imagePullSecrets:
- name: github
containers:
- name: device-configuration-app
image: ghcr.io/swordsteel/hlaeja-device-configuration:0.1.0
imagePullPolicy: IfNotPresent
envFrom:
- configMapRef:
name: device-configuration
- secretRef:
name: device-configuration
ports:
- containerPort: 8080

View File

@@ -0,0 +1,20 @@
apiVersion: v1
kind: Service
metadata:
name: device-configuration
namespace: hlaeja
annotations:
metallb.universe.tf/address-pool: default
labels:
app: device-configuration
environment: testing
tier: backend
spec:
type: LoadBalancer
loadBalancerIP: 10.0.3.113
selector:
app: device-configuration
ports:
- protocol: TCP
port: 80
targetPort: 8080