代码拉取完成,页面将自动刷新
同步操作将从 Mooodo/demo-service-eureka 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
kind: StatefulSet
apiVersion: apps/v1
metadata:
labels:
app: demo-service-eureka-cluster
name: eureka
namespace: default
spec:
replicas: 3
serviceName: eureka
podManagementPolicy: "Parallel"
selector:
matchLabels:
app: demo-service-eureka-cluster
template:
metadata:
name: eureka
labels:
app: demo-service-eureka-cluster
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: "app"
operator: In
values:
- demo-service-eureka-cluster
topologyKey: "kubernetes.io/hostname"
containers:
- name: demo-service-eureka-cluster
image: repository:5000/demo-service-eureka:<VERSION>
imagePullPolicy: Always
args: [--spring.profiles.active=cluster]
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: SERVICE_HOST
value: ${POD_NAME}.eureka
- name: REGISTRY_URL
value: "http://eureka-0.eureka:9001/eureka,http://eureka-1.eureka:9001/eureka,http://eureka-2.eureka:9001/eureka"
---
kind: Service
apiVersion: v1
metadata:
labels:
app: demo-service-eureka-cluster
name: eureka
namespace: default
spec:
ports:
- name: http
port: 9001
clusterIP: None
selector:
app: demo-service-eureka-cluster
---
kind: Service
apiVersion: v1
metadata:
labels:
app: demo-service-eureka-cluster
name: demo-service-eureka-cluster
namespace: default
spec:
type: NodePort
ports:
- name: http
port: 9001
targetPort: 9001
nodePort: 32001
selector:
app: demo-service-eureka-cluster
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。