1 Star 0 Fork 59

王朝/sapic

forked from staugur/sapic 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
kube-sapic.yaml 1.30 KB
一键复制 编辑 原始数据 按行查看 历史
staugur 提交于 2021-10-24 21:18 . update deploy
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: sapic-deploy
labels:
app: sapic
spec:
replicas: 1
selector:
matchLabels:
app: sapic
template:
metadata:
labels:
app: sapic
annotations:
port: "9514"
python: "3.7"
github: "sapicd/sapic"
spec:
containers:
- name: sapic
image: docker.io/staugur/sapic:latest
env:
- name: sapic_redis_url # redis服务IP地址
value: "redis://@redis"
#设置信任代理标头
#- name: sapic_proxyfix
# value: "true"
ports:
- containerPort: 9514
readinessProbe:
httpGet:
scheme: HTTP
port: 9514
path: /api/index
initialDelaySeconds: 3
timeoutSeconds: 3
livenessProbe:
httpGet:
scheme: HTTP
port: 9514
path: /api/index
initialDelaySeconds: 10
timeoutSeconds: 5
---
apiVersion: v1
kind: Service
metadata:
name: sapic-svc
labels:
app: sapic
spec:
selector:
app: sapic
ports:
- name: sapic-port
protocol: TCP
port: 9514
targetPort: 9514
#在Node上映射一个端口
#type: NodePort
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/chaocheng_king/picbed.git
git@gitee.com:chaocheng_king/picbed.git
chaocheng_king
picbed
sapic
master

搜索帮助