Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
900 B
3
Indexable
Never
apiVersion: flink.apache.org/v1beta1
kind: FlinkDeployment
metadata:
  name: session-deployment-only-example
spec:
  image: flink:1.16
  flinkVersion: v1_16
  flinkConfiguration:
    taskmanager.numberOfTaskSlots: "10"
  serviceAccount: flink
  jobManager:
    resource:
      memory: "2048m"
      cpu: 1
  taskManager:
    resource:
      memory: "2048m"
      cpu: 1



apiVersion: flink.apache.org/v1beta1
kind: FlinkSessionJob
metadata:
  name: session-job-only-example
spec:
  deploymentName: session-deployment-only-example
  job:
    jarURI: file:///Users/rxahuja/Downloads/flink-examples-streaming_2.12-1.16.1-TopSpeedWindowing.jar
    parallelism: 4
    upgradeMode: stateless



kubectl get flinksessionjobs | grep session-job-only-example
basic-session-job-only-example                UPGRADING
session-job-only-example                      UPGRADING