12345678910111213141516171819202122232425262728293031 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- labels:
- app: flink-dinky
- name: dinky
- namespace: dinky
- spec:
- selector:
- matchLabels:
- app: flink-dinky
- template:
- metadata:
- labels:
- app: flink-dinky
- spec:
- containers:
- #dinky镜像,如果需要更新请前往【https://hub.docker.com/r/dinkydocker/dinky-standalone-server/tags】选择合适镜像版本
- #如果需要添加拓展jar包,可通过dinky注册中心【jar包管理】处添加,或者通过Dockerfile将其打包进docker镜像,再上传至私有仓库再替换此处的镜像
- - image: reg.cestong.com.cn/cecf/dinky:latest
- imagePullPolicy: Always
- name: dinky
- #将下方configMap配置映射到容器内部,修改配置需要重启pod生效
- volumeMounts:
- - mountPath: /opt/dinky/config/application.yml
- name: admin-config
- subPath: application.yml
- volumes:
- - name: admin-config
- configMap:
- name: dinky-config
|