Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create checklist.yaml #48

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions helios/checklist.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
domain: # 域名配置,如存在多个域名则填写多个
- test.test-merge.cn # 服务域名
# 服务域名
project: helios-server-test # 项目名
namespace: helios-server-test # 服务命名空间,与project保持一致
replicas: 1 # 服务副本数
serviceExportType: Ingress # 服务对外暴露类型, NodePort, LoadBalancer, Ingress, 使用NodePort
#nodePort: # 当服务对外暴露类型为NodePort时使用,nodePort端口范围30000-32767,一个端口对应一个服务,规范:80:30000(服务端口:nodePort端口),非NodePort则去除此项
ingress-controller: nginx # 如需要对外暴露服务,且当对外暴露服务类型为Ingress时使用,非Ingress则去除此项
community: openeuler # 服务归属的社区,如openeuler,mindspore,openlookeng,opengauss

# 如服务有依赖其他多个服务,则需要增加多个containers下的服务配置块
containers:
- name: helios # 容器名称
args: # 容器内代码运行所需参数
image: swr.cn-north-4.myhuaweicloud.com/opensourceway/helios-server/helios-voting:master-0e6254f # 镜像id
# volumeMounts: # 挂载
# - mountPath: # 挂载路径
# name: # 名称
# - mountPath:
# name:
# subPath: # 映射卷名
# - mountPath: # 配置文件路径,若无,则删除此块
# name: # 配置文件名
# readOnly: # 只读
resources: # 资源
requests: # 容器启动必需资源
cpu: 1000m
memory: 2000Mi
limits: # 最大限制资源
cpu: 2000m
memory: 3000Mi
env: # 环境变量
- name: GH_CLIENT_ID # 变量名
valueFrom:
secretKeyRef:
key: GH_CLIENT_ID # 变量名,与name的值一致
name: helios-server-test-secrets # secret文件名,如不设置,后续均不设置,系统会进行默认生成,如要自行设置,则所有的值保持一致
command: # 容器启动时所需的命令
readinessProbe: # 容器就绪探针定义
tcpSocket:
port: # 监听端口,与容器暴露端口一致
initialDelaySeconds: 10
failureThreshold: 3
successThreshold: 1
periodSeconds: 10
timeoutSeconds: 5
livenessProbe: # 容器存活探针定义
tcpSocket:
port: # 监听端口,与容器暴露端口一致
initialDelaySeconds: 20
periodSeconds: 20
successThreshold: 1
failureThreshold: 3
timeoutSeconds: 5
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080 # 容器暴露的端口
name: http
protocol: TCP
72 changes: 72 additions & 0 deletions test2/checklist.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
domain: # 域名配置,如存在多个域名则填写多个
- 10.11.12.13
- 11.12.13.14
project: test-server # 项目名
namespace: test-server # 服务命名空间,与project保持一致
replicas: 3 # 服务副本数
needIngress: True # 是否需要对外暴露服务 bool值(默认为False, 不填写也认为是False)
ingress-controller: nignx # 如需要对外暴露服务,则填写此字段,如不需要则去除
community: openeuler # 服务归属的社区,如openeuler,mindspore,openlookeng,opengauss

# 如服务有依赖其他多个服务,则需要增加多个containers下的服务配置块
containers:
- name: review-bot # 容器名称
args:
- --port=8888 # 容器内代码运行所需参数
image: swr.huawei.com/openeuler/infra/test-server:dadasf554251s # 镜像id
volumeMounts: # 挂载
- mountPath: /bot/data # 挂载路径
name: data-volume # 名称
- mountPath: /etc/secrets
name: test-server-secret
subPath: test-secrets # 映射卷名
resources: # 资源
requests: # 容器启动必需资源
cpu: 2000M
memory: 4500M
limits: # 最大限制资源
cpu: 4000M
memory: 5000M
env: # 环境变量
- name: GITEE_TOKEN # 变量名
valueFrom:
secretKeyRef:
key: GITEE_TOKEN # 变量名,与name的值一致
name: test-server-secret # secret文件名,如不设置,后续均不设置,系统会进行默认生成,如要自行设置,则所有的值保持一致
command:
- /bin/sh
- -c
- |
echo "create"
readinessProbe: # 容器就绪探针定义
tcpSocket:
port: # 监听端口,与容器暴露端口一致
initialDelaySeconds: 10
failureThreshold: 3
successThreshold: 1
periodSeconds: 10
timeoutSeconds: 5
livenessProbe: # 容器存活探针定义
tcpSocket:
port: # 监听端口,与容器暴露端口一致
initialDelaySeconds: 20
periodSeconds: 20
successThreshold: 1
failureThreshold: 3
timeoutSeconds: 5
ports:
- containerPort: 8888 # 容器暴露的端口
name: http
protocol: TCP

volumes:
- name: data-volume # 挂载名称
persistentVolumeClaim: # 物理存储,使用此字段则表明使用数据盘进行挂载
claimName: test-server-data-volume # 声明的物理存储盘名称,建议使用project+“-data-volume”的格式命名,如 robot-gitee-data-volume

- name: secret-volume # 挂载名称
secret:
secretName: test-server-secret # 隐秘文件名,建议使用project+“-secret”的格式命名,如 website-secret

storage: 10G # 挂载的数据盘大小 (只针对需要物理存储的数据盘时设置)
storageClassName: ssd # 挂载数据盘类型