1 Star 0 Fork 116

请叫我小C/arkid-core

forked from 龙归科技/arkid 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
skaffold-arkid-be-deploy.yml 3.08 KB
一键复制 编辑 原始数据 按行查看 历史
notevery 提交于 2021-01-27 19:06 . 容器化开发arkid
apiVersion: apps/v1
kind: Deployment
metadata:
name: arkid
labels:
app.kubernetes.io/name: arkid
helm.sh/chart: arkid-1.4.0
app.kubernetes.io/instance: arkid
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app.kubernetes.io/name: arkid
app.kubernetes.io/instance: arkid
template:
metadata:
labels:
app.kubernetes.io/name: arkid
app.kubernetes.io/instance: arkid
spec:
initContainers:
- image: busybox
command:
- sh
- -c
- echo 65535 > /proc/sys/net/core/somaxconn
imagePullPolicy: Always
name: setsysctl
securityContext:
privileged: true
containers:
- name: "arkid-web-server"
image: skaffold-arkid-be
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 80
protocol: TCP
livenessProbe:
httpGet:
path: /ping/
port: http
readinessProbe:
httpGet:
path: /ping/
port: http
volumeMounts:
- name: "settings-local"
mountPath: "/var/oneid/settings_local.py"
subPath: "settings_local.py"
- name: arkid-data
mountPath: /var/oneid/upload
subPath: be/upload
# @TODO: mount plugins
# - name: arkid-data
# mountPath: /var/oneid/plugins
# subPath: be/plugins
- name: "arkid-web-server-broker"
image: "longguikeji/arkid-broker:1.0.0"
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8080
protocol: TCP
args: ["broker", "-t", "http://localhost", "-p", "8080"]
- name: "arkid-redis"
image: "redis:5.0.3"
imagePullPolicy: IfNotPresent
- name: "arkid-mysql-database"
image: "mysql:5.7"
imagePullPolicy: IfNotPresent
args:
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
volumeMounts:
- name: arkid-data
mountPath: /var/lib/mysql
subPath: mysql/data
- name: arkid-data
mountPath: /etc/mysql/conf.d
subPath: mysql/config
- name: "arkid-ldap"
image: "longguikeji/ark-sql-ldap:1.2.0"
imagePullPolicy: IfNotPresent
env:
- name: SQL_HOST
value: "127.0.0.1"
- name: SQL_PORT
value: "3306"
- name: SQL_USER
value: "root"
- name: SQL_PWD
value: "root"
- name: LDAP_PASSWORD
value: "admin"
- name: SQL_DB
value: "arkid"
- name: BACKEND
value: "sql"
volumes:
- name: settings-local
configMap:
name: arkid
- name: arkid-data
persistentVolumeClaim:
claimName: arkid
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/consuy1382/arkid-core.git
git@gitee.com:consuy1382/arkid-core.git
consuy1382
arkid-core
arkid-core
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385