1 Star 0 Fork 50

番茄鸡蛋/pipeline-demo

forked from tiny_lk/pipeline-demo 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
k8s-deployment.tpl 819 Bytes
一键复制 编辑 原始数据 按行查看 历史
ZhangYu 提交于 2021-05-18 10:51 . update 添加滚动更新
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: {APP_NAME}-deployment
labels:
app: {APP_NAME}
spec:
replicas: 2
selector:
matchLabels:
app: {APP_NAME}
minReadySeconds: 5
strategy:
# indicate which strategy we want for rolling update
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
template:
metadata:
labels:
app: {APP_NAME}
spec:
containers:
- name: {APP_NAME}
image: {DOCKER_IMAGE}:{IMAGE_TAG}
ports:
- containerPort: 40080
env:
- name: SPRING_PROFILES_ACTIVE
value: {SPRING_PROFILE}
---
apiVersion: v1
kind: Service
metadata:
name: {APP_NAME}
spec:
type: NodePort
ports:
- port: 40080
targetPort: 40080
selector:
app: {APP_NAME}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/choc/pipeline-demo.git
git@gitee.com:choc/pipeline-demo.git
choc
pipeline-demo
pipeline-demo
master

搜索帮助