被Spring坑了一把,查看源码终于解决了DataFlow部署K8s应用的问题
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
matchExpressions: key: beta.kubernetes.io/os
operator: In
values:
linux
containers:
name: php-apache
image: ‘pkslow/hpa-example:latest’
ports:
containerPort: 80
protocol: TCP
resources:
requests:
cpu: 200m
imagePullPolicy: IfNotPresent
这样设置是可以成功部署的。
修改 Data Flow 的配置如下:
spring:
cloud:
dataflow:
task:
platform:
kubernet
共有 0 条评论