代码拉取完成,页面将自动刷新
---
kind: Service
apiVersion: v1
metadata:
namespace: rocketmq
name: service-rocketmq-namesrv-prod
labels:
app: service-rocketmq-namesrv-prod
spec:
ports:
- protocol: TCP
port: 9876
targetPort: 9876
selector:
app: pod-rocketmq-namesrv-prod
type: ClusterIP
clusterIP: None
sessionAffinity: ClientIP
---
kind: StatefulSet
apiVersion: apps/v1
metadata:
namespace: rocketmq
name: statefulset-rocketmq-namesrv-prod
labels:
app: statefulset-rocketmq-namesrv-prod
spec:
replicas: 2
serviceName: service-rocketmq-namesrv-prod
selector:
matchLabels:
app: pod-rocketmq-namesrv-prod
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: pod-rocketmq-namesrv-prod
spec:
nodeSelector:
node-role.kubernetes.io/rocketmq: "true"
hostNetwork: true
imagePullSecrets:
- name: nexus-secret
containers:
- image: 172.21.88.30/library/rocketmq-namesrv:4.5.1
securityContext:
privileged: true
imagePullPolicy: Always
name: container-rocketmq-namesrv-prod
ports:
- protocol: TCP
containerPort: 9876
resources:
requests:
cpu: 4000m
memory: 2048Mi
limits:
cpu: 4000m
memory: 4096Mi
readinessProbe:
tcpSocket:
port: 9876
initialDelaySeconds: 10
periodSeconds: 5
livenessProbe:
tcpSocket:
port: 9876
initialDelaySeconds: 120
periodSeconds: 10
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- pod-rocketmq-namesrv-prod
topologyKey: kubernetes.io/hostname
dnsPolicy: ClusterFirst
restartPolicy: Always
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。