Last active
March 22, 2020 14:46
-
-
Save congd123/572f536e083207570aaa684bded93a93 to your computer and use it in GitHub Desktop.
Deployment object for a taskmanager
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: taskmanager | |
spec: | |
selector: | |
matchLabels: | |
app: flink | |
replicas: 2 | |
template: | |
metadata: | |
labels: | |
app: flink | |
component: task | |
spec: | |
containers: | |
- name: task | |
image: flink:1.10.0-scala_2.12 | |
workingDir: /opt/flink | |
args: | |
- taskmanager | |
ports: | |
- containerPort: 6121 | |
name: data | |
- containerPort: 6122 | |
name: rpc | |
- containerPort: 6125 | |
name: query | |
env: | |
- name: JOB_MANAGER_RPC_ADDRESS | |
value: jobmanager |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment