Replies: 1 comment
-
|
It is recommended that officials provide a standardized and comprehensive template. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
pod template格式还有坑?下面的带正常缩进的,执行作业时直接报错,任何提示都没有。
apiVersion: v1
kind: Pod
metadata:
name: pod-template
spec:
serviceAccount: flink
hostAliases:
- ip: "192.168.0.3"
hostnames:
- "sss.pigsty"
containers:
- name: flink-main-container
volumeMounts:
- name: flink-checkpoints-csi-pvc
mountPath: /opt/flink/checkpoints
- name: flink-savepoints-csi-pvc
mountPath: /opt/flink/savepoints
- name: flink-paimon-csi-pvc
mountPath: /opt/flink/datalake
volumes:
- name: flink-checkpoints-csi-pvc
persistentVolumeClaim:
claimName: flink-checkpoints-csi-pvc
- name: flink-savepoints-csi-pvc
persistentVolumeClaim:
claimName: flink-savepoints-csi-pvc
- name: flink-paimon-csi-pvc
persistentVolumeClaim:
claimName: flink-paimon-csi-pvc
imagePullSecrets:
- name: streamparksecret
下面这种没有缩进的格式就能正常运行(这种格式实际是错误的):
apiVersion: v1
kind: Pod
metadata:
namespace: kube-system
name: pod-template
spec:
serviceAccount: flink
hostAliases:
- ip: "192.168.0.3"
hostnames:
- "sss.pigsty"
containers:
- name: flink-main-container
volumeMounts:
- name: juicefs-sc-datalake-pv
mountPath: /opt/flink/datalake
volumes:
- name: juicefs-sc-datalake-pv
persistentVolumeClaim:
claimName: juicefs-sc-datalake-pvc
imagePullSecrets:
- name: streamparksecret
Beta Was this translation helpful? Give feedback.
All reactions