add:
This commit is contained in:
@@ -16,7 +16,8 @@ spec:
|
||||
labels:
|
||||
app: user-rpc
|
||||
spec:
|
||||
serviceAccountName: find-endpoints
|
||||
# serviceAccountName: find-endpoints
|
||||
serviceAccountName: user-rpc
|
||||
initContainers: # 等待数据库就绪的 Init Container 不影响资源使用但是影响调度策略(也可以忽略不计)
|
||||
- name: wait-for-db
|
||||
image: busybox:1.36
|
||||
@@ -45,6 +46,11 @@ spec:
|
||||
secretKeyRef:
|
||||
name: user-redis
|
||||
key: password
|
||||
- name: JWT_SECRET_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: jwt-secret
|
||||
key: secret-key
|
||||
readinessProbe:
|
||||
tcpSocket:
|
||||
port: 9001
|
||||
|
||||
Reference in New Issue
Block a user