代码拉取完成,页面将自动刷新
同步操作将从 StarsL.cn/TenSunS 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
kind: Deployment
apiVersion: apps/v1
metadata:
name: flask-consul
labels:
app: flask-consul
spec:
replicas: 1
selector:
matchLabels:
app: flask-consul
template:
metadata:
labels:
app: flask-consul
spec:
initContainers:
- name: wait-for-consul
image: busybox
command:
- sh
- '-c'
- >-
for i in $(seq 1 60); do nc -z -w3 x.x.x.x 8500 && exit 0 ||
sleep 5; done; exit 1
imagePullPolicy: IfNotPresent
containers:
- name: flask-consul
image: 'swr.cn-south-1.myhuaweicloud.com/starsl.cn/flask-consul:latest'
ports:
- name: http-2026
containerPort: 2026
protocol: TCP
env:
- name: admin_passwd
value: 'xxxxxxxx'
- name: consul_token
value: xxxx-xxxx-xxxx-xxxx
- name: consul_url
value: 'http://x.x.x.x:8500/v1'
- name: log_level
value: INFO
- name: TZ
value: Asia/Shanghai
imagePullPolicy: Always
restartPolicy: Always
---
kind: Service
apiVersion: v1
metadata:
name: flask-consul
labels:
app: flask-consul
spec:
ports:
- name: http-2026
protocol: TCP
port: 2026
targetPort: 2026
selector:
app: flask-consul
type: ClusterIP
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: nginx-consul
labels:
app: nginx-consul
spec:
replicas: 1
selector:
matchLabels:
app: nginx-consul
template:
metadata:
labels:
app: nginx-consul
spec:
containers:
- name: nginx-consul
image: 'swr.cn-south-1.myhuaweicloud.com/starsl.cn/nginx-consul:latest'
ports:
- name: http-1026
containerPort: 1026
protocol: TCP
env:
- name: TZ
value: Asia/Shanghai
imagePullPolicy: Always
restartPolicy: Always
---
kind: Service
apiVersion: v1
metadata:
name: consulmanager
labels:
service: consulmanager
spec:
ports:
- name: nginx-consul
protocol: TCP
port: 1026
targetPort: 1026
nodePort: 31026
selector:
app: nginx-consul
type: NodePort
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。