1 Star 0 Fork 0

dannyslee/todolist-backend

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
myapp.yaml 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
dannyslee 提交于 2022-01-13 08:09 . add myapp.yaml.
apiVersion: v1
kind: Service
metadata:
name: myapp
spec:
type: NodePort
ports:
- port: 3001
selector:
app: myapp
---
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2,after 1.9.0 use apps/v1
kind: Deployment
metadata:
name: myapp
spec:
selector:
matchLabels:
app: myapp
strategy:
type: Recreate
template:
metadata:
labels:
app: myapp
spec:
containers:
- image: registry.cn-shanghai.aliyuncs.com/jike-serverless/todolist:latest
name: myapp
resources:
requests:
memory: "256Mi"
cpu: "200m"
limits:
memory: "512Mi"
cpu: "500m"
env:
- name: PORT
value: "3001"
ports:
- containerPort: 3001
name: myapp
imagePullSecrets:
- name: regcred
#apiVersion: v1
#kind: Pod
#metadata:
# name: myapp
#spec:
# containers:
# - name: myapp
# image: registry.cn-shanghai.aliyuncs.com/jike-serverless/todolist:latest
# imagePullSecrets:
# - name: regcred
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dannyslee/todolist-backend.git
git@gitee.com:dannyslee/todolist-backend.git
dannyslee
todolist-backend
todolist-backend
master

搜索帮助