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
|
||||||
@@ -22,3 +22,9 @@ releases:
|
|||||||
chart: ./charts/04-device-registry
|
chart: ./charts/04-device-registry
|
||||||
values: []
|
values: []
|
||||||
historyMax: 3
|
historyMax: 3
|
||||||
|
|
||||||
|
- name: device-configuration
|
||||||
|
namespace: hlaeja-testing
|
||||||
|
chart: ./charts/05-device-configuration
|
||||||
|
values: []
|
||||||
|
historyMax: 3
|
||||||
|
|||||||
@@ -1,2 +1,5 @@
|
|||||||
### get actuator
|
### get actuator
|
||||||
GET {{hostname}}/actuator
|
GET {{hostname}}/actuator
|
||||||
|
|
||||||
|
### get actuator health
|
||||||
|
GET {{hostname}}/actuator/health
|
||||||
|
|||||||
Reference in New Issue
Block a user