Skip to content

Commit

Permalink
[hotfix][kubernetes] Use stable api apps/v1 instead of extensions/v1b…
Browse files Browse the repository at this point in the history
…eta1

The extensions/v1beta1 has been removed since v1.16. For better compatibility, we should use the stable api apps/v1 instead. The apps/v1 is introduced from v1.9.0.
  • Loading branch information
wangyang0918 authored and tillrohrmann committed Jan 14, 2020
1 parent 2abfe43 commit cd54369
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@
# limitations under the License.
################################################################################

apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: flink-task-manager
spec:
replicas: ${FLINK_JOB_PARALLELISM}
selector:
matchLabels:
app: flink
component: task-manager
template:
metadata:
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@
# limitations under the License.
################################################################################

apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: flink-task-manager
spec:
replicas: ${FLINK_JOB_PARALLELISM}
selector:
matchLabels:
app: flink
component: task-manager
template:
metadata:
labels:
Expand Down

0 comments on commit cd54369

Please sign in to comment.