update helm
This commit is contained in:
@@ -9,3 +9,4 @@ metadata:
|
||||
type: Opaque
|
||||
data:
|
||||
SPRING_DATA_REDIS_PASSWORD: {{ .Values.secrets.redisPassword | b64enc | quote }}
|
||||
SPRING_KAFKA_PROPERTIES_SASL_JAAS_CONFIG: {{ .Values.secrets.kafkaPlainLoginModule | b64enc | quote }}
|
||||
|
||||
@@ -8,7 +8,37 @@ metadata:
|
||||
tier: frontend
|
||||
data:
|
||||
SPRING_PROFILES_ACTIVE: {{ .Values.config.profiles | quote }}
|
||||
{{- if and .Values.config.timeout (ne .Values.config.timeout "") }}
|
||||
SPRING_SESSION_TIMEOUT: {{ .Values.config.timeout | quote }}
|
||||
{{- end }}
|
||||
|
||||
{{- if and .Values.config.redis }}
|
||||
{{- if and .Values.config.redis.database (ne .Values.config.redis.database "") }}
|
||||
SPRING_DATA_REDIS_DATABASE: {{ .Values.config.redis.database | quote }}
|
||||
{{- end }}
|
||||
{{- if and .Values.config.redis.host (ne .Values.config.redis.host "") }}
|
||||
SPRING_DATA_REDIS_HOST: {{ .Values.config.redis.host | quote }}
|
||||
ACCOUNT_REGISTRY_URL: {{ .Values.config.accountRegistryUrl | quote }}
|
||||
DEVICE_REGISTRY_URL: {{ .Values.config.deviceRegistryUrl | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{- if and .Values.config.error }}
|
||||
{{- if and .Values.config.error.exception (ne .Values.config.error.exception "") }}
|
||||
SERVER_ERROR_INCLUDE_EXCEPTION: {{ .Values.config.error.exception | quote }}
|
||||
{{- end }}
|
||||
{{- if and .Values.config.error.message (ne .Values.config.error.message "") }}
|
||||
SERVER_ERROR_INCLUDE_MESSAGE: {{ .Values.config.error.message | quote }}
|
||||
{{- end }}
|
||||
{{- if and .Values.config.error.stacktrace (ne .Values.config.error.stacktrace "") }}
|
||||
SERVER_ERROR_INCLUDE_STACKTRACE: {{ .Values.config.error.stacktrace | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{- if and .Values.config.accountRegistryUrl (ne .Values.config.accountRegistryUrl "") }}
|
||||
ACCOUNT_REGISTRY_URL: {{ .Values.config.accountRegistryUrl }}
|
||||
{{- end }}
|
||||
{{- if and .Values.config.deviceRegistryUrl (ne .Values.config.deviceRegistryUrl "") }}
|
||||
DEVICE_REGISTRY_URL: {{ .Values.config.deviceRegistryUrl }}
|
||||
{{- end }}
|
||||
SPRING_KAFKA_BOOTSTRAP_SERVERS: "dependency-kafka:9092"
|
||||
SPRING_KAFKA_PROPERTIES_SECURITY_PROTOCOL: "SASL_PLAINTEXT"
|
||||
SPRING_KAFKA_PROPERTIES_SASL_MECHANISM: "PLAIN"
|
||||
|
||||
@@ -27,17 +27,33 @@ spec:
|
||||
name: management-environment
|
||||
- secretRef:
|
||||
name: management-environment
|
||||
env:
|
||||
- name: SERVER_SSL_KEY_STORE_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ .Values.keystoreRef }}
|
||||
key: keystore-password
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
volumeMounts:
|
||||
- name: keystore-volume
|
||||
mountPath: /app/resources/cert/keystore.p12
|
||||
subPath: keystore.p12
|
||||
readOnly: true
|
||||
- name: jwt-volume
|
||||
mountPath: /app/resources/cert/{{ .Values.jwtPublicKey.filename }}
|
||||
subPath: {{ .Values.jwtPublicKey.filename }}
|
||||
mountPath: /app/resources/cert/public_key.pem
|
||||
subPath: public_key.pem
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: keystore-volume
|
||||
secret:
|
||||
secretName: {{ .Values.keystoreRef }}
|
||||
items:
|
||||
- key: keystore.p12
|
||||
path: keystore.p12
|
||||
- name: jwt-volume
|
||||
secret:
|
||||
secretName: {{ .Values.jwtPublicKey.name }}
|
||||
items:
|
||||
- key: {{ .Values.jwtPublicKey.filename }}
|
||||
path: {{ .Values.jwtPublicKey.filename }}
|
||||
- key: {{ .Values.jwtPublicKey.key }}
|
||||
path: public_key.pem
|
||||
|
||||
@@ -15,5 +15,5 @@ spec:
|
||||
app: management
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 8080
|
||||
port: 443
|
||||
targetPort: 8443
|
||||
|
||||
Reference in New Issue
Block a user