deployment.yaml 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. labels:
  5. app: flink-dinky
  6. name: dinky
  7. namespace: dinky
  8. spec:
  9. selector:
  10. matchLabels:
  11. app: flink-dinky
  12. template:
  13. metadata:
  14. labels:
  15. app: flink-dinky
  16. spec:
  17. containers:
  18. #dinky镜像,如果需要更新请前往【https://hub.docker.com/r/dinkydocker/dinky-standalone-server/tags】选择合适镜像版本
  19. #如果需要添加拓展jar包,可通过dinky注册中心【jar包管理】处添加,或者通过Dockerfile将其打包进docker镜像,再上传至私有仓库再替换此处的镜像
  20. - image: reg.cestong.com.cn/cecf/dinky:latest
  21. imagePullPolicy: Always
  22. name: dinky
  23. #将下方configMap配置映射到容器内部,修改配置需要重启pod生效
  24. volumeMounts:
  25. - mountPath: /opt/dinky/config/application.yml
  26. name: admin-config
  27. subPath: application.yml
  28. volumes:
  29. - name: admin-config
  30. configMap:
  31. name: dinky-config