1 Star 0 Fork 13.1K

一生无忧/pig

forked from lengleng/pig 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nacos.yaml 1.83 KB
一键复制 编辑 原始数据 按行查看 历史
一生无忧 提交于 2023-03-03 16:54 . asdas
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app: pig-register
name: pig-register
namespace: default
spec:
serviceName: pig-register
replicas: 1
selector:
matchLabels:
app: pig-register
template:
metadata:
labels:
app: pig-register
annotations:
pod.alpha.kubernetes.io/initialized: "true"
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: "app"
operator: In
values:
- nacos
topologyKey: "kubernetes.io/hostname"
imagePullSecrets:
- name: harbor-secret
containers:
- image: ccr.ccs.tencentyun.com/jenkins-jobs/pig-register:$BUILD_NUMBER
imagePullPolicy: Always
name: pig-register
ports:
- containerPort: 8848
name: client-port
- containerPort: 9848
name: client-rpc
- containerPort: 9849
name: raft-rpc
- containerPort: 7848
name: old-raft-rpc
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
labels:
app: pig-register
name: pig-register
namespace: default
annotations:
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
spec:
ports:
- port: 8848
protocol: TCP
name: server
targetPort: 8848
nodePort: 31203
- port: 9848
name: client-rpc
targetPort: 9848
- port: 9849
name: raft-rpc
targetPort: 9849
selector:
app: pig-register
sessionAffinity: None
type: NodePort
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/worry-free-life/pig.git
[email protected]:worry-free-life/pig.git
worry-free-life
pig
pig
master

搜索帮助