【发布时间】:2020-12-29 12:57:09
【问题描述】:
我有一个 ignite 集群,我尝试根据他们的文档添加一个 gridgain 控制中心:https://www.gridgain.com/docs/control-center/latest/installation/kubernetes(参见下面的deployment.yaml ) 但我不断收到此错误
$ kubectl apply -f control-center-backend-deployment.yaml
error: error validating "control-center-backend-deployment.yaml": error validating data: [ValidationError(Deployment.spec): unknown field "serviceName" in io.k8s.api.apps.v1.DeploymentSpec, ValidationError(Deployment.spec): unknown field "volumeClaimTemplates" in io.k8s.api.apps.v1.DeploymentSpec]; if you choose to ignore these errors, turn validation off with --validate=false
当我将 type 更改为 statefullstate 时,它起作用了,但这不是他们想要的 有人可以帮忙吗
# An example of a Kubernetes configuration for Control Center pod deployment.
apiVersion: apps/v1
kind: Deployment
metadata:
name: backend
namespace: gridgain-control-center
spec:
replicas: 1
serviceName: backend
selector:
matchLabels:
app: backend
template:
metadata:
labels:
app: backend
spec:
containers:
- name: backend-container
image: gridgain/control-center-backend:2020.12.00
imagePullPolicy: IfNotPresent
env:
- name: JVM_OPTS
value: ""
volumeMounts:
- mountPath: /opt/gridgain-control-center/work
name: control-center-storage
volumeClaimTemplates:
- metadata:
name: control-center-storage
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 1Gi
selector:
matchLabels:
【问题讨论】:
标签: kubernetes charts ignite gridgain kubernetes-statefulset