helm hlaeja device configuration
- update actuator.http - update helmfile.yaml - add 04-service.yaml - add 03-deployment.yaml - add 02-configmap.yaml - add 01-secret.yaml - add values.yaml - add Chart.yaml
This commit is contained in:
4
helm/charts/05-device-configuration/Chart.yaml
Normal file
4
helm/charts/05-device-configuration/Chart.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: v2
|
||||
name: hlaeja-device-configuration
|
||||
description: A Helm chart for the hlaeja device configuration
|
||||
version: 0.1.0
|
||||
11
helm/charts/05-device-configuration/templates/01-secret.yaml
Normal file
11
helm/charts/05-device-configuration/templates/01-secret.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: device-configuration-environment
|
||||
labels:
|
||||
app: device-configuration
|
||||
environment: {{ .Values.environment }}
|
||||
tier: backend
|
||||
type: Opaque
|
||||
data:
|
||||
SPRING_CASSANDRA_PASSWORD: {{ .Values.secrets.cassandraPassword | b64enc | quote }}
|
||||
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: device-configuration-environment
|
||||
labels:
|
||||
app: device-configuration
|
||||
environment: {{ .Values.environment }}
|
||||
tier: backend
|
||||
data:
|
||||
SPRING_PROFILES_ACTIVE: {{ .Values.config.profiles | quote }}
|
||||
SPRING_CASSANDRA_CONTACT_POINTS: {{ .Values.config.cassandraContactPoints | quote }}
|
||||
SPRING_CASSANDRA_USERNAME: {{ .Values.config.cassandraUsername | quote }}
|
||||
@@ -0,0 +1,31 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: device-configuration
|
||||
labels:
|
||||
app: device-configuration
|
||||
environment: {{ .Values.environment }}
|
||||
tier: backend
|
||||
spec:
|
||||
replicas: {{ .Values.replicas }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: device-configuration
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: device-configuration
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: {{ .Values.docker.registry }}
|
||||
containers:
|
||||
- name: device-configuration-app
|
||||
image: {{ .Values.docker.image }}
|
||||
imagePullPolicy: IfNotPresent
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: device-configuration-environment
|
||||
- secretRef:
|
||||
name: device-configuration-environment
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
@@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: device-configuration
|
||||
labels:
|
||||
app: device-configuration
|
||||
environment: {{ .Values.environment }}
|
||||
tier: backend
|
||||
spec:
|
||||
{{- if and .Values.loadBalancerIP (ne .Values.loadBalancerIP "") }}
|
||||
type: LoadBalancer
|
||||
loadBalancerIP: {{ .Values.loadBalancerIP }}
|
||||
{{- end }}
|
||||
selector:
|
||||
app: device-configuration
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 8080
|
||||
15
helm/charts/05-device-configuration/values.yaml
Normal file
15
helm/charts/05-device-configuration/values.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
environment: testing
|
||||
replicas: 1
|
||||
#loadBalancerIP: 10.0.3.23
|
||||
|
||||
docker:
|
||||
registry: dockerRegistry
|
||||
image: lulz.ltd/hlaeja/hlaeja-device-configuration:0.1.0
|
||||
|
||||
secrets:
|
||||
cassandraPassword: "password"
|
||||
|
||||
config:
|
||||
profiles: testing
|
||||
cassandraContactPoints: database-cassandra
|
||||
cassandraUsername: service
|
||||
Reference in New Issue
Block a user