Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/kubernetes/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Kubernetes 为ignite部署控制中心gridgain_Kubernetes_Charts_Ignite_Gridgain_Kubernetes Statefulset - Fatal编程技术网

Kubernetes 为ignite部署控制中心gridgain

Kubernetes 为ignite部署控制中心gridgain,kubernetes,charts,ignite,gridgain,kubernetes-statefulset,Kubernetes,Charts,Ignite,Gridgain,Kubernetes Statefulset,我有一个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

我有一个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: