1 Star 0 Fork 20

安卫国/wu-framework-parent

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
k8s.yaml 35.78 KB
一键复制 编辑 原始数据 按行查看 历史
wujiawei 提交于 2022-01-26 20:54 . format
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
k8s.eip.work/displayName: cloud-nacos
k8s.eip.work/ingress: 'false'
k8s.eip.work/service: ClusterIP
k8s.eip.work/workload: cloud-nacos
labels:
k8s.eip.work/layer: cloud
k8s.eip.work/name: cloud-nacos
name: cloud-nacos
namespace: wujiawei
spec:
podManagementPolicy: OrderedReady
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
k8s.eip.work/layer: cloud
k8s.eip.work/name: cloud-nacos
serviceName: 'cloud-nacos'
template:
metadata:
labels:
k8s.eip.work/layer: cloud
k8s.eip.work/name: cloud-nacos
spec:
containers:
- env:
- name: MODE
value: standalone
image: nacos/nacos-server
imagePullPolicy: Always
name: nacos-server
resources:
limits:
memory: 1Gi
requests:
memory: 1Gi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /home/nacos/data
name: nacos-data
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: { }
terminationGracePeriodSeconds: 30
updateStrategy:
rollingUpdate:
partition: 0
type: RollingUpdate
volumeClaimTemplates:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
k8s.eip.work/pvcType: Dynamic
name: nacos-data
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
storageClassName: nfs1-storage
volumeMode: Filesystem
---
apiVersion: v1
kind: Service
metadata:
annotations:
k8s.eip.work/displayName: cloud-nacos
k8s.eip.work/workload: cloud-nacos
labels:
k8s.eip.work/layer: cloud
k8s.eip.work/name: cloud-nacos
name: cloud-nacos
namespace: wujiawei
spec:
externalTrafficPolicy: Cluster
ipFamilyPolicy: SingleStack
ports:
- name: wthymr1
nodePort: 30501
port: 8848
protocol: TCP
targetPort: 8848
selector:
k8s.eip.work/layer: cloud
k8s.eip.work/name: cloud-nacos
sessionAffinity: None
type: NodePort
# mysql
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
namespace: wujiawei
name: cloud-mysql
annotations:
k8s.eip.work/workload: cloud-mysql
k8s.eip.work/displayName: 数据库
k8s.eip.work/service: NodePort
k8s.eip.work/ingress: 'false'
labels:
k8s.eip.work/layer: db
k8s.eip.work/name: cloud-mysql
spec:
selector:
matchLabels:
k8s.eip.work/layer: db
k8s.eip.work/name: cloud-mysql
replicas: 1
template:
metadata:
labels:
k8s.eip.work/layer: db
k8s.eip.work/name: cloud-mysql
spec:
restartPolicy: Always
initContainers: [ ]
containers:
- image: 'mysql:latest'
imagePullPolicy: Always
name: mysql
volumeMounts:
- name: mysql-data
mountPath: /var/lib/mysql
- name: mysql-cnf-map
mountPath: /etc/mysql/conf.d/custom.cnf
subPath: custom.cnf
- name: tz
mountPath: /etc/localtime
resources:
limits:
cpu: "2"
memory: 4Gi
env:
- name: MYSQL_ROOT_PASSWORD
value: root
volumes:
- name: mysql-cnf-map
configMap:
name: mysql-cnf
items:
- key: cnf
path: custom.cnf
defaultMode: 420
- name: tz
hostPath:
path: /usr/share/zoneinfo/Asia/Shanghai
type: File
volumeClaimTemplates:
- metadata:
name: mysql-data
annotations:
k8s.eip.work/pvcType: Dynamic
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
storageClassName: nfs1-storage
serviceName: cloud-mysql
---
apiVersion: v1
kind: Service
metadata:
namespace: wujiawei
name: cloud-mysql
annotations:
k8s.eip.work/workload: cloud-mysql
k8s.eip.work/displayName: 数据库
labels:
k8s.eip.work/layer: db
k8s.eip.work/name: cloud-mysql
spec:
selector:
k8s.eip.work/layer: db
k8s.eip.work/name: cloud-mysql
type: NodePort
ports:
- port: 3306
targetPort: 3306
protocol: TCP
name: wthymr
nodePort: 30502
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
namespace: wujiawei
name: cloud-redis
annotations:
k8s.eip.work/workload: cloud-redis
k8s.eip.work/displayName: redis
k8s.eip.work/service: NodePort
k8s.eip.work/ingress: 'false'
labels:
k8s.eip.work/layer: cloud
k8s.eip.work/name: cloud-redis
spec:
selector:
matchLabels:
k8s.eip.work/layer: cloud
k8s.eip.work/name: cloud-redis
template:
metadata:
labels:
k8s.eip.work/layer: cloud
k8s.eip.work/name: cloud-redis
spec:
restartPolicy: Always
initContainers: [ ]
containers:
- image: 'redis'
imagePullPolicy: Always
name: redis
command:
- /conf/init.sh
args:
- redis-server
- /conf/redis.conf
volumeMounts:
- name: tz
mountPath: /etc/localtime
- name: redis-data
mountPath: /data
- name: conf
mountPath: /conf
securityContext:
privileged: true
resources:
limits:
memory: 100Mi
requests:
memory: 80Mi
volumes:
- name: tz
hostPath:
path: /usr/share/zoneinfo/Asia/Shanghai
type: File
- name: conf
configMap:
name: redis-cnf
defaultMode: 493
replicas: 1
volumeClaimTemplates:
- metadata:
name: redis-data
annotations:
k8s.eip.work/pvcType: Dynamic
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi
storageClassName: nfs1-storage
serviceName: cloud-redis
---
apiVersion: v1
kind: Service
metadata:
namespace: wujiawei
name: cloud-redis
annotations:
k8s.eip.work/workload: cloud-redis
k8s.eip.work/displayName: redis
labels:
k8s.eip.work/layer: cloud
k8s.eip.work/name: cloud-redis
spec:
selector:
k8s.eip.work/layer: cloud
k8s.eip.work/name: cloud-redis
type: NodePort
ports:
- port: 6379
targetPort: 6379
protocol: TCP
name: iyekm6
nodePort: 30503
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
namespace: wujiawei
name: cloud-nginx
annotations:
k8s.eip.work/workload: cloud-nginx
k8s.eip.work/displayName: 前端
k8s.eip.work/service: NodePort
k8s.eip.work/ingress: 'false'
labels:
k8s.eip.work/layer: web
k8s.eip.work/name: cloud-nginx
spec:
selector:
matchLabels:
k8s.eip.work/layer: web
k8s.eip.work/name: cloud-nginx
template:
metadata:
labels:
k8s.eip.work/layer: web
k8s.eip.work/name: cloud-nginx
spec:
restartPolicy: Always
initContainers: [ ]
containers:
- image: 'nginx:1.13.0-alpine'
imagePullPolicy: IfNotPresent
name: nginx
volumeMounts:
- name: default-conf
mountPath: /etc/nginx/conf.d/default.conf
subPath: default.conf
- name: nginx-conf
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
- name: nginx-html
mountPath: /usr/share/nginx/html
- name: tz
mountPath: /etc/localtime
resources:
limits:
memory: 50Mi
requests:
memory: 50Mi
env: [ ]
volumes:
- name: default-conf
configMap:
name: nginx-cnf
items:
- key: default-conf
path: default.conf
defaultMode: 420
- name: nginx-conf
configMap:
name: nginx-cnf
items:
- key: nginx-conf
path: nginx.conf
defaultMode: 420
- name: tz
hostPath:
path: /usr/share/zoneinfo/Asia/Shanghai
type: File
replicas: 1
volumeClaimTemplates:
- metadata:
name: nginx-html
annotations:
k8s.eip.work/pvcType: Dynamic
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 200Mi
storageClassName: nfs1-storage
serviceName: cloud-nginx
---
apiVersion: v1
kind: Service
metadata:
namespace: wujiawei
name: cloud-nginx
annotations:
k8s.eip.work/workload: cloud-nginx
k8s.eip.work/displayName: 前端
labels:
k8s.eip.work/layer: web
k8s.eip.work/name: cloud-nginx
spec:
selector:
k8s.eip.work/layer: web
k8s.eip.work/name: cloud-nginx
type: NodePort
ports:
- port: 80
targetPort: 80
protocol: TCP
name: aswmqa
nodePort: 30500
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: wujiawei
name: cloud-gateway
annotations:
k8s.eip.work/workload: cloud-gateway
k8s.eip.work/displayName: 网关
k8s.eip.work/service: NodePort
k8s.eip.work/ingress: 'false'
labels:
k8s.eip.work/layer: gateway
k8s.eip.work/name: cloud-gateway
spec:
selector:
matchLabels:
k8s.eip.work/layer: gateway
k8s.eip.work/name: cloud-gateway
template:
metadata:
labels:
k8s.eip.work/layer: gateway
k8s.eip.work/name: cloud-gateway
spec:
restartPolicy: Always
initContainers: [ ]
containers:
- image: 'docker-registry.root.com/root/cloud-gateway:root-wujiawei.0_latest'
imagePullPolicy: Always
name: cloud-gateway
# resources:
# limits:
# memory: 768Mi
# requests:
# memory: 768Mi
envFrom:
- configMapRef:
name: common-cnf
replicas: 1
---
apiVersion: v1
kind: Service
metadata:
namespace: wujiawei
name: cloud-gateway
annotations:
k8s.eip.work/workload: cloud-gateway
k8s.eip.work/displayName: GateWay网关
labels:
k8s.eip.work/layer: gateway
k8s.eip.work/name: cloud-gateway
spec:
selector:
k8s.eip.work/layer: gateway
k8s.eip.work/name: cloud-gateway
type: ClusterIP
ports:
- port: 7777
targetPort: 7777
protocol: TCP
name: td7aai
nodePort: 0
# influxdb
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
k8s.kuboard.cn/displayName: cloud-influxdb
labels:
k8s.kuboard.cn/layer: db
k8s.kuboard.cn/name: cloud-influxdb
name: cloud-influxdb
namespace: wujiawei
spec:
podManagementPolicy: OrderedReady
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
k8s.kuboard.cn/layer: db
k8s.kuboard.cn/name: cloud-influxdb
serviceName: cloud-influxdb
template:
metadata:
labels:
k8s.kuboard.cn/layer: db
k8s.kuboard.cn/name: cloud-influxdb
spec:
containers:
- env:
- name: DOCKER_INFLUXDB_INIT_MODE
value: setup
- name: DOCKER_INFLUXDB_INIT_USERNAME
value: root
- name: DOCKER_INFLUXDB_INIT_PASSWORD
value: root-influxdb
- name: DOCKER_INFLUXDB_INIT_ORG
value: cloud-org
- name: DOCKER_INFLUXDB_INIT_BUCKET
value: cloud-bucket
- name: DOCKER_INFLUXDB_INIT_RETENTION
value: 1w
image: 'influxdb:2.0'
imagePullPolicy: IfNotPresent
name: cloud-influxdb
securityContext:
privileged: true
capabilities:
add:
- "NET_ADMIN"
resources: { }
terminationMessagePolicy: File
volumeMounts:
- name: tz
mountPath: /etc/localtime
- name: influx-data
mountPath: /var/lib/influxdb2
volumes:
- name: tz
hostPath:
path: /usr/share/zoneinfo/Asia/Shanghai
type: File
dnsPolicy: ClusterFirst
restartPolicy: Always
updateStrategy:
rollingUpdate:
partition: 0
type: RollingUpdate
volumeClaimTemplates:
- metadata:
name: influx-data
annotations:
k8s.eip.work/pvcType: Dynamic
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 200Gi
storageClassName: nfs1-storage
---
apiVersion: v1
kind: Service
metadata:
annotations: { }
labels:
k8s.kuboard.cn/layer: db
k8s.kuboard.cn/name: cloud-influxdb
name: cloud-influxdb
namespace: wujiawei
spec:
externalTrafficPolicy: Cluster
ipFamilyPolicy: SingleStack
ports:
- name: dacrpq
nodePort: 30506
port: 8086
protocol: TCP
targetPort: 8086
selector:
k8s.kuboard.cn/layer: db
k8s.kuboard.cn/name: cloud-influxdb
sessionAffinity: None
type: NodePort
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
k8s.kuboard.cn/displayName: cloud-pulsar
labels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: cloud-pulsar
name: cloud-pulsar
namespace: wujiawei
spec:
podManagementPolicy: OrderedReady
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: cloud-pulsar
serviceName: cloud-pulsar
template:
metadata:
labels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: cloud-pulsar
spec:
containers:
- command:
- sh
- -c
- "bin/pulsar standalone"
image: apachepulsar/pulsar-all:2.8.0
imagePullPolicy: IfNotPresent
name: cloud-pulsar
resources: { }
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /pulsar/data
name: pulsar-data
- mountPath: /pulsar/conf/broker.conf
name: broker-conf
subPath: broker.conf
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: { }
terminationGracePeriodSeconds: 30
volumes:
- configMap:
defaultMode: 420
items:
- key: broker_conf
path: broker.conf
name: pulsar-config
name: broker-conf
updateStrategy:
rollingUpdate:
partition: 0
type: RollingUpdate
volumeClaimTemplates:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
k8s.eip.work/pvcType: Dynamic
name: pulsar-data
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 20Gi
storageClassName: nfs1-storage
volumeMode: Filesystem
---
apiVersion: v1
kind: Service
metadata:
annotations: { }
labels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: cloud-pulsar
name: cloud-pulsar
namespace: wujiawei
spec:
externalTrafficPolicy: Cluster
ipFamilyPolicy: SingleStack
ports:
- name: nxmc43
nodePort: 30507
port: 8080
protocol: TCP
targetPort: 8080
- name: xxw76b
nodePort: 30508
port: 6650
protocol: TCP
targetPort: 6650
selector:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: cloud-pulsar
sessionAffinity: None
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deprecated.daemonset.template.generation: '1'
k8s.kuboard.cn/displayName: pulsar管理工具UI
labels:
k8s.kuboard.cn/layer: monitor
k8s.kuboard.cn/name: pulsar-manager
name: pulsar-manager
namespace: wujiawei
spec:
revisionHistoryLimit: 10
selector:
matchLabels:
k8s.kuboard.cn/layer: monitor
k8s.kuboard.cn/name: pulsar-manager
template:
metadata:
labels:
k8s.kuboard.cn/layer: monitor
k8s.kuboard.cn/name: pulsar-manager
spec:
containers:
- env:
- name: SPRING_CONFIGURATION_FILE
value: /pulsar-manager/pulsar-manager/application.properties
image: apachepulsar/pulsar-manager
command:
- sh
- -c
- "sed -i '/^default.environment.name/ s|.*|default.environment.name=pulsar-standalone|' /pulsar-manager/pulsar-manager/application.properties & \
sed -i '/^default.environment.service_url/ s|.*|default.environment.service_url=http://cloud-pulsar:8080|' /pulsar-manager/pulsar-manager/application.properties & \
/pulsar-manager/entrypoint.sh & \
tail -F /pulsar-manager/pulsar-manager/pulsar-manager.log"
imagePullPolicy: Always
name: pulsar-manager
resources: { }
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: { }
terminationGracePeriodSeconds: 30
---
apiVersion: v1
kind: Service
metadata:
annotations: { }
labels:
k8s.kuboard.cn/layer: monitor
k8s.kuboard.cn/name: pulsar-manager
name: pulsar-manager
namespace: wujiawei
spec:
externalTrafficPolicy: Cluster
ipFamilyPolicy: SingleStack
ports:
- name: 4kdjxc
nodePort: 30509
port: 9527
protocol: TCP
targetPort: 9527
- name: nnk5m8
nodePort: 30720
port: 7750
protocol: TCP
targetPort: 7750
selector:
k8s.kuboard.cn/layer: monitor
k8s.kuboard.cn/name: pulsar-manager
sessionAffinity: None
type: NodePort
#添加账号
# CSRF_TOKEN=$(curl http://pulsar-manager:7750/pulsar-manager/csrf-token)
# curl \
#-H "X-XSRF-TOKEN: $CSRF_TOKEN" \
#-H "Cookie: XSRF-TOKEN=$CSRF_TOKEN;" \
#-H 'Content-Type: application/json' \
# -X PUT http://pulsar-manager:7750/pulsar-manager/users/superuser \
#-d '{"name": "pulsar", "password": "pulsar", "description": "pulsar", "email": "username@test.org"}'
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
k8s.kuboard.cn/displayName: cloud-rabbitmq
k8s.kuboard.cn/workload: cloud-rabbitmq
labels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: cloud-rabbitmq
name: cloud-rabbitmq
namespace: wujiawei
spec:
selector:
matchLabels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: cloud-rabbitmq
serviceName: cloud-rabbitmq
template:
metadata:
labels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: cloud-rabbitmq
spec:
containers:
- env:
- name: RABBITMQ_DEFAULT_USER
value: admin
- name: RABBITMQ_DEFAULT_PASS
value: root
image: 'rabbitmq:3-management'
imagePullPolicy: IfNotPresent
name: cloud-rabbitmq
resources: { }
volumeMounts:
- mountPath: /var/lib/rabbitmq
name: rabbitmq-data
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: { }
volumeClaimTemplates:
- metadata:
name: rabbitmq-data
annotations:
k8s.eip.work/pvcType: Dynamic
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 20Gi
storageClassName: nfs1-storage
---
apiVersion: v1
kind: Service
metadata:
annotations:
k8s.kuboard.cn/workload: cloud-rabbitmq
labels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: cloud-rabbitmq
name: cloud-rabbitmq
namespace: wujiawei
spec:
externalTrafficPolicy: Cluster
ipFamilyPolicy: SingleStack
ports:
- name: sfdpd6
nodePort: 30504
port: 15672
protocol: TCP
targetPort: 15672
- name: qnebyd
nodePort: 30505
port: 5672
protocol: TCP
targetPort: 5672
selector:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: cloud-rabbitmq
sessionAffinity: None
type: NodePort
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
k8s.kuboard.cn/displayName: minio存储服务器
labels:
k8s.kuboard.cn/layer: db
k8s.kuboard.cn/name: cloud-minio
name: cloud-minio
namespace: wujiawei
spec:
podManagementPolicy: OrderedReady
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
k8s.kuboard.cn/layer: db
k8s.kuboard.cn/name: cloud-minio
serviceName: ''
template:
metadata:
labels:
k8s.kuboard.cn/layer: db
k8s.kuboard.cn/name: cloud-minio
spec:
containers:
- args:
- server
- /data
- '--console-address'
- ':30722'
env:
- name: MINIO_ROOT_USER
value: admin
- name: MINIO_ROOT_PASSWORD
value: root1234
image: minio/minio
imagePullPolicy: Always
name: cloud-minio
resources: { }
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /data
name: minio-data
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: { }
terminationGracePeriodSeconds: 30
updateStrategy:
rollingUpdate:
partition: 0
type: RollingUpdate
volumeClaimTemplates:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
k8s.eip.work/pvcType: Dynamic
name: minio-data
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 20Gi
storageClassName: nfs1-storage
volumeMode: Filesystem
---
apiVersion: v1
kind: Service
metadata:
annotations: { }
labels:
k8s.kuboard.cn/layer: db
k8s.kuboard.cn/name: cloud-minio
name: cloud-minio
namespace: wujiawei
spec:
externalTrafficPolicy: Cluster
ipFamilyPolicy: SingleStack
ports:
- name: zwjxk2
nodePort: 30721
port: 9000
protocol: TCP
targetPort: 9000
- name: awkbce
nodePort: 30722
port: 30722
protocol: TCP
targetPort: 30722
selector:
k8s.kuboard.cn/layer: db
k8s.kuboard.cn/name: cloud-minio
sessionAffinity: None
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deprecated.daemonset.template.generation: '1'
k8s.kuboard.cn/displayName: cloud-flink
labels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: cloud-flink
name: cloud-flink
namespace: wujiawei
spec:
selector:
matchLabels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: cloud-flink
template:
metadata:
labels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: cloud-flink
spec:
containers:
- name: flink-jobmanager
args:
- jobmanager
env:
- name: JOB_MANAGER_RPC_ADDRESS
value: flink-jobmanager
image: flink
imagePullPolicy: Always
ports:
- containerPort: 8081
hostPort: 8081
protocol: TCP
resources: { }
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
- name: flink-taskmanager
args:
- taskmanager
env:
- name: JOB_MANAGER_RPC_ADDRESS
value: flink-jobmanager
image: flink
imagePullPolicy: Always
resources: { }
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
---
apiVersion: v1
kind: Service
metadata:
annotations: { }
labels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: cloud-flink
name: cloud-flink
namespace: wujiawei
spec:
ipFamilyPolicy: SingleStack
ports:
- name: 3sdpt3
nodePort: 30723
port: 8081
protocol: TCP
targetPort: 8081
selector:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: cloud-flink
sessionAffinity: None
type: NodePort
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
k8s.kuboard.cn/displayName: 分布式调度
labels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: cloud-xxl-job-admin
name: cloud-xxl-job-admin
namespace: wujiawei
spec:
podManagementPolicy: OrderedReady
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: cloud-xxl-job-admin
serviceName: ''
template:
metadata:
labels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: cloud-xxl-job-admin
spec:
containers:
- env:
- name: PARAMS
value: >-
--spring.datasource.url=jdbc:mysql://cloud-mysql:3306/xxl_job?allowMultiQueries=true&useUnicode=true&autoReconnect=true&useAffectedRows=true&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
--spring.datasource.username=xxl_job
--spring.datasource.password=root
image: 'xuxueli/xxl-job-admin'
imagePullPolicy: IfNotPresent
name: xxl-job-admin
resources: { }
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /temp
name: job-data
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: { }
terminationGracePeriodSeconds: 30
updateStrategy:
rollingUpdate:
partition: 0
type: RollingUpdate
volumeClaimTemplates:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
k8s.eip.work/pvcType: Dynamic
name: job-data
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 5Gi
storageClassName: nfs1-storage
volumeMode: Filesystem
---
apiVersion: v1
kind: Service
metadata:
annotations: { }
labels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: cloud-xxl-job-admin
name: cloud-xxl-job-admin
namespace: wujiawei
spec:
ipFamilyPolicy: SingleStack
ports:
- name: 4ndzaj
port: 8080
protocol: TCP
targetPort: 8080
selector:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: cloud-xxl-job-admin
sessionAffinity: None
type: ClusterIP
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
k8s.kuboard.cn/displayName: cloud-mqtt
labels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: cloud-mqtt
name: cloud-mqtt
namespace: wujiawei
spec:
podManagementPolicy: OrderedReady
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: cloud-mqtt
serviceName: ''
template:
metadata:
labels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: cloud-mqtt
spec:
containers:
- image: registry.cn-hangzhou.aliyuncs.com/synbop/emqttd:2.3.6
imagePullPolicy: IfNotPresent
name: cloud-mqtt
resources: { }
terminationMessagePolicy: File
volumeMounts:
- mountPath: /data
name: mqtt-data
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: { }
terminationGracePeriodSeconds: 30
updateStrategy:
rollingUpdate:
partition: 0
type: RollingUpdate
volumeClaimTemplates:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
k8s.eip.work/pvcType: Dynamic
name: mqtt-data
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 20Gi
storageClassName: nfs1-storage
volumeMode: Filesystem
---
apiVersion: v1
kind: Service
metadata:
annotations: { }
labels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: cloud-mqtt
name: cloud-mqtt
namespace: wujiawei
spec:
externalTrafficPolicy: Cluster
ipFamilyPolicy: SingleStack
ports:
- name: wndgz2
nodePort: 30725
port: 18083
protocol: TCP
targetPort: 18083
- name: yzmyjc
nodePort: 30726
port: 1883
protocol: TCP
targetPort: 1883
selector:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: cloud-mqtt
sessionAffinity: None
type: NodePort
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
k8s.kuboard.cn/displayName: ngrok
labels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: ngrok
name: ngrok
namespace: wujiawei
spec:
podManagementPolicy: OrderedReady
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: ngrok
serviceName: ngrok
template:
metadata:
labels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: ngrok
spec:
containers:
- command:
- /bin/sh
- /server.sh
env:
- name: DOMAIN
value: wu-framework.com
- name: HTTP_ADDR
value: '172.29.29.59:80'
- name: HTTPS_ADDR
value: '172.29.29.59:443'
- name: TUNNEL_ADDR
value: '172.29.29.58:4443'
image: hteen/ngrok
imagePullPolicy: Always
name: ngrok
resources: { }
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /myfiles
name: ngrok-bin-data
- image: nginx
imagePullPolicy: Always
name: nginx
resources: { }
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: { }
terminationGracePeriodSeconds: 30
updateStrategy:
rollingUpdate:
partition: 0
type: RollingUpdate
volumeClaimTemplates:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
k8s.eip.work/pvcType: Dynamic
name: ngrok-bin-data
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 200Mi
storageClassName: nfs1-storage
volumeMode: Filesystem
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
k8s.eip.work/displayName: cloud-redisearch
k8s.eip.work/ingress: 'false'
k8s.eip.work/service: NodePort
k8s.eip.work/workload: cloud-redisearch
k8s.kuboard.cn/workload: cloud-redisearch
labels:
k8s.eip.work/layer: cloud
k8s.eip.work/name: cloud-redisearch
k8s.kuboard.cn/name: cloud-redisearch
name: cloud-redisearch
namespace: wujiawei
spec:
podManagementPolicy: OrderedReady
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
k8s.eip.work/layer: cloud
k8s.eip.work/name: cloud-redisearch
k8s.kuboard.cn/name: cloud-redisearch
serviceName: cloud-redisearch
template:
metadata:
labels:
k8s.eip.work/layer: cloud
k8s.eip.work/name: cloud-redisearch
k8s.kuboard.cn/name: cloud-redisearch
spec:
containers:
- image: redislabs/redisearch
imagePullPolicy: Always
name: cloud-redisearch
resources: { }
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: { }
terminationGracePeriodSeconds: 30
volumes:
- hostPath:
path: /usr/share/zoneinfo/Asia/Shanghai
type: File
name: tz
- configMap:
defaultMode: 493
name: redis-cnf
name: conf
updateStrategy:
rollingUpdate:
partition: 0
type: RollingUpdate
volumeClaimTemplates:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
k8s.eip.work/pvcType: Dynamic
name: redis-data
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi
storageClassName: nfs1-storage
volumeMode: Filesystem
---
apiVersion: v1
kind: Service
metadata:
annotations:
k8s.eip.work/displayName: cloud-redisearch
k8s.eip.work/workload: cloud-redisearch
k8s.kuboard.cn/workload: cloud-redisearch
labels:
k8s.eip.work/layer: cloud
k8s.eip.work/name: cloud-redisearch
k8s.kuboard.cn/name: cloud-redisearch
name: cloud-redisearch
namespace: wujiawei
spec:
externalTrafficPolicy: Cluster
internalTrafficPolicy: Cluster
ipFamilyPolicy: SingleStack
ports:
- name: iyekm6
nodePort: 30505
port: 6379
protocol: TCP
targetPort: 6379
selector:
k8s.eip.work/layer: cloud
k8s.eip.work/name: cloud-redisearch
k8s.kuboard.cn/name: cloud-redisearch
sessionAffinity: None
type: NodePort
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
k8s.eip.work/displayName: cloud-rejson
k8s.eip.work/ingress: 'false'
k8s.eip.work/service: NodePort
k8s.eip.work/workload: cloud-rejson
k8s.kuboard.cn/workload: cloud-rejson
labels:
k8s.eip.work/layer: cloud
k8s.eip.work/name: cloud-rejson
k8s.kuboard.cn/name: cloud-rejson
name: cloud-rejson
spec:
podManagementPolicy: OrderedReady
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
k8s.eip.work/layer: cloud
k8s.eip.work/name: cloud-rejson
k8s.kuboard.cn/name: cloud-rejson
serviceName: cloud-rejson
template:
metadata:
labels:
k8s.eip.work/layer: cloud
k8s.eip.work/name: cloud-rejson
k8s.kuboard.cn/name: cloud-rejson
spec:
containers:
- image: redislabs/rejson
imagePullPolicy: Always
name: cloud-rejson
resources: { }
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: { }
terminationGracePeriodSeconds: 30
volumes:
- hostPath:
path: /usr/share/zoneinfo/Asia/Shanghai
type: File
name: tz
- configMap:
defaultMode: 493
name: redis-cnf
name: conf
updateStrategy:
rollingUpdate:
partition: 0
type: RollingUpdate
volumeClaimTemplates:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
k8s.eip.work/pvcType: Dynamic
name: redis-data
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi
storageClassName: nfs1-storage
volumeMode: Filesystem
---
apiVersion: v1
kind: Service
metadata:
annotations:
k8s.eip.work/displayName: cloud-rejson
k8s.eip.work/workload: cloud-rejson
k8s.kuboard.cn/workload: cloud-rejson
labels:
k8s.eip.work/layer: cloud
k8s.eip.work/name: cloud-rejson
k8s.kuboard.cn/name: cloud-rejson
name: cloud-rejson
namespace: wujiawei
spec:
externalTrafficPolicy: Cluster
internalTrafficPolicy: Cluster
ipFamilyPolicy: SingleStack
ports:
- name: iyekm6
nodePort: 30504
port: 6379
protocol: TCP
targetPort: 6379
selector:
k8s.eip.work/layer: cloud
k8s.eip.work/name: cloud-rejson
k8s.kuboard.cn/name: cloud-rejson
sessionAffinity: None
type: NodePort
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/wanfengluoye/wu-framework-parent.git
git@gitee.com:wanfengluoye/wu-framework-parent.git
wanfengluoye
wu-framework-parent
wu-framework-parent
master

搜索帮助