build: add kafka secret and dependencies.

This commit is contained in:
Monet Lee 2024-12-18 17:27:36 +08:00
parent 8213948d89
commit 742a611d27
5 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,7 @@
apiVersion: v1
kind: Secret
metadata:
name: openim-kafka-secret
type: Opaque
data:
kafka-password: ""

View File

@ -33,6 +33,11 @@ spec:
secretKeyRef: secretKeyRef:
name: openim-mongo-secret name: openim-mongo-secret
key: mongo_openim_password key: mongo_openim_password
- name: IMENV_KAFKA_PASSWORD
valueFrom:
secretKeyRef:
name: openim-kafka-secret
key: kafka-password
volumeMounts: volumeMounts:
- name: openim-config - name: openim-config
mountPath: "/config" mountPath: "/config"

View File

@ -23,6 +23,11 @@ spec:
secretKeyRef: secretKeyRef:
name: openim-redis-secret name: openim-redis-secret
key: redis-password key: redis-password
- name: IMENV_KAFKA_PASSWORD
valueFrom:
secretKeyRef:
name: openim-kafka-secret
key: kafka-password
volumeMounts: volumeMounts:
- name: openim-config - name: openim-config
mountPath: "/config" mountPath: "/config"

View File

@ -33,6 +33,11 @@ spec:
secretKeyRef: secretKeyRef:
name: openim-mongo-secret name: openim-mongo-secret
key: mongo_openim_password key: mongo_openim_password
- name: IMENV_KAFKA_PASSWORD
valueFrom:
secretKeyRef:
name: openim-kafka-secret
key: kafka-password
volumeMounts: volumeMounts:
- name: openim-config - name: openim-config
mountPath: "/config" mountPath: "/config"

View File

@ -33,6 +33,11 @@ spec:
secretKeyRef: secretKeyRef:
name: openim-mongo-secret name: openim-mongo-secret
key: mongo_openim_password key: mongo_openim_password
- name: IMENV_KAFKA_PASSWORD
valueFrom:
secretKeyRef:
name: openim-kafka-secret
key: kafka-password
volumeMounts: volumeMounts:
- name: openim-config - name: openim-config
mountPath: "/config" mountPath: "/config"