You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/11/10 07:25:29 UTC

[GitHub] [rocketmq-operator] chaoyoung opened a new issue, #142: console doesn't support affinity filed

chaoyoung opened a new issue, #142:
URL: https://github.com/apache/rocketmq-operator/issues/142

   rocketmq_cluster.yaml
   ```yaml
   apiVersion: rocketmq.apache.org/v1alpha1
   kind: Console
   metadata:
     name: console
     namespace: rocketmq
   spec:
     # nameServers is the [ip:port] list of name service
     nameServers: ""
     # consoleDeployment define the console deployment
     consoleDeployment:
       apiVersion: apps/v1
       kind: Deployment
       metadata:
         labels:
           app: rocketmq-console
       spec:
         replicas: 1
         selector:
           matchLabels:
             app: rocketmq-console
         template:
           metadata:
             labels:
               app: rocketmq-console
           spec:
             containers:
               - name: console
                 image: apacherocketmq/rocketmq-dashboard:1.0.0
                 ports:
                   - containerPort: 8080
         affinity:
           nodeAffinity:
             requiredDuringSchedulingIgnoredDuringExecution:
               nodeSelectorTerms:
               - matchExpressions:
                 - key: kubernetes.io/hostname
                   operator: In
                   values:
                   - dev-k8s-node1
                   - dev-k8s-node2
   ```
   
   kubectl apply -f rocketmq_cluster.yaml
   ```
   error: error validating "rocketmq_v1alpha1_rocketmq_cluster.yaml": error validating data: ValidationError(Console.spec.consoleDeployment.spec): unknown field "affinity" in org.apache.rocketmq.v1alpha1.Console.spec.consoleDeployment.spec; if you choose to ignore these errors, turn validation off with --validate=false
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-operator] chaoyoung closed issue #142: console doesn't support affinity filed

Posted by GitBox <gi...@apache.org>.
chaoyoung closed issue #142: console doesn't support affinity filed
URL: https://github.com/apache/rocketmq-operator/issues/142


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-operator] chaoyoung commented on issue #142: console doesn't support affinity filed

Posted by GitBox <gi...@apache.org>.
chaoyoung commented on issue #142:
URL: https://github.com/apache/rocketmq-operator/issues/142#issuecomment-1311171851

   > In fact `Console.spec` is just a `Deployment`, so the field "affinity" should be defined in `Console.spec.consoleDeployment.spec.template.spec`, not in `Console.spec.consoleDeployment.spec`.
   
   I'm sorry, I'm too careless, thank you for your answer.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-operator] caigy commented on issue #142: console doesn't support affinity filed

Posted by GitBox <gi...@apache.org>.
caigy commented on issue #142:
URL: https://github.com/apache/rocketmq-operator/issues/142#issuecomment-1311143279

   In fact `Console.spec` is just a `Deployment`, so the field "affinity" should be defined in `Console.spec.consoleDeployment.spec.template.spec`, not in `Console.spec.consoleDeployment.spec`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org