3.jobmanager-session-deployment-non-ha.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Enough to let k8s restart it automatically
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: flink-jobmanager
  6. spec:
  7. replicas: 1
  8. selector:
  9. matchLabels:
  10. app: flink
  11. component: jobmanager
  12. template:
  13. metadata:
  14. labels:
  15. app: flink
  16. component: jobmanager
  17. spec:
  18. containers:
  19. - name: jobmanager
  20. image: apache/flink:1.16.2-scala_2.12
  21. args: ["jobmanager"]
  22. ports:
  23. - containerPort: 6123
  24. name: rpc
  25. - containerPort: 6124
  26. name: blob-server
  27. - containerPort: 8081
  28. name: webui
  29. resources:
  30. limits:
  31. memory: "8192Mi"
  32. cpu: "4000m"
  33. requests:
  34. memory: "1024Mi"
  35. cpu: "1000m"
  36. livenessProbe:
  37. tcpSocket:
  38. port: 6123
  39. initialDelaySeconds: 30
  40. periodSeconds: 60
  41. volumeMounts:
  42. - name: flink-config-volume
  43. mountPath: /opt/flink/conf
  44. securityContext:
  45. runAsUser: 9999 # refers to user _flink_ from official flink image, change if necessary
  46. volumes:
  47. - name: flink-config-volume
  48. configMap:
  49. name: flink-config
  50. items:
  51. - key: flink-conf.yaml
  52. path: flink-conf.yaml
  53. - key: log4j-console.properties
  54. path: log4j-console.properties