标签:uid second vol value security strategy dao 生成 ali
name: <protocol>[-<suffix>]
基于以上要求。 垫付宝的服务在接入网格前需要对deployment进行相应修改,一个已经修改好的deployment 如下所示
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
generation: 1
labels:
app: dfb-login
name: dfb-login
namespace: dfb-istio
spec:
replicas: 1
selector:
matchLabels:
app: dfb-login
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
app: dfb-login
version: v196
spec:
containers:
- image: ult.harbor.com/dfb-azure/dfb-login:v196
imagePullPolicy: Always
name: dfb-login
ports:
- containerPort: 80
name: http-dfblogin
protocol: TCP
resources:
limits:
cpu: 500m
memory: 1000Mi
requests:
cpu: 300m
memory: 500Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /opt/app/logs/
name: log-path-app
- mountPath: /usr/local/php/logs/
name: log-path-php
- mountPath: /opt/app/.env
name: dfb-login-configmap
subPath: .env
dnsConfig:
nameservers:
- 172.21.0.2
options:
- name: ndots
value: "5"
- name: timeout
value: "1"
- name: eth0
searches:
- dfb-istio.svc.cluster.local
- svc.cluster.local
- cluster.local
dnsPolicy: None
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 60
volumes:
- hostPath:
path: /data/logs/dfb-istio/dfb-login/app
type: ""
name: log-path-app
- hostPath:
path: /data/logs/dfb-istio/dfb-login/php
type: ""
name: log-path-php
- configMap:
defaultMode: 420
name: dfb-login-configmap
name: dfb-login-configmap
初期选择加入网格的服务有dfb-login,dfb-api,dfb-bestsign,dfb-consumer。但因为这几个服务的调用关系比较简单,后续又加入了两个外部服务,dfb-account,dfb-billing
最终的调用链图(通过jagger自动生成)
服务需要改动的部分
标签:uid second vol value security strategy dao 生成 ali
原文地址:https://www.cnblogs.com/itanony/p/11976331.html