You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/07/12 11:01:59 UTC
[GitHub] [rocketmq-operator] feiyuyitiao opened a new issue, #114: the 'console' create failed.
feiyuyitiao opened a new issue, #114:
URL: https://github.com/apache/rocketmq-operator/issues/114
operator got error when apply console.yaml
```
2022-07-12T10:58:11.493Z ERROR controller.console-controller Reconciler error {"name": "console", "namespace": "mq",
"error": "Deployment.apps \"console\" is invalid: spec.template.metadata.labels: Invalid value: map[string]string(nil): `selector` does not match template `labels`"}
```
--
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: dev-unsubscribe@rocketmq.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-operator] caigy closed issue #114: the 'console' create failed.
Posted by GitBox <gi...@apache.org>.
caigy closed issue #114: the 'console' create failed.
URL: https://github.com/apache/rocketmq-operator/issues/114
--
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: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-operator] ccctask commented on issue #114: the 'console' create failed.
Posted by GitBox <gi...@apache.org>.
ccctask commented on issue #114:
URL: https://github.com/apache/rocketmq-operator/issues/114#issuecomment-1183915246
> fix by change code: pkg/controller/console/console_controller.go:201
>
> >
>
> ```
> //Labels: cr.Spec.ConsoleDeployment.Spec.Template.ObjectMeta.Labels,
> Labels: cr.Spec.ConsoleDeployment.Spec.Selector.MatchLabels,
> ```
:-) This solves the problem, but causes the deployment to rely on its own selector label, not the templates's label
--
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: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-operator] ccctask commented on issue #114: the 'console' create failed.
Posted by GitBox <gi...@apache.org>.
ccctask commented on issue #114:
URL: https://github.com/apache/rocketmq-operator/issues/114#issuecomment-1183906220
`rocketmq-operator/example/rocketmq_v1alpha1_rocketmq_cluster.yaml` with example resources define
```yaml
apiVersion: rocketmq.apache.org/v1alpha1
kind: Console
metadata:
name: console
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-console:2.0.0
ports:
- containerPort: 8080
```
--
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: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-operator] caigy commented on issue #114: the 'console' create failed.
Posted by GitBox <gi...@apache.org>.
caigy commented on issue #114:
URL: https://github.com/apache/rocketmq-operator/issues/114#issuecomment-1181731014
@feiyuyitiao Is `spec.template.metadata.labels` defined in `console.yaml`?
--
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: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-operator] ccctask commented on issue #114: the 'console' create failed.
Posted by GitBox <gi...@apache.org>.
ccctask commented on issue #114:
URL: https://github.com/apache/rocketmq-operator/issues/114#issuecomment-1183867813
same issue with me 😯
--
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: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-operator] feiyuyitiao commented on issue #114: the 'console' create failed.
Posted by GitBox <gi...@apache.org>.
feiyuyitiao commented on issue #114:
URL: https://github.com/apache/rocketmq-operator/issues/114#issuecomment-1182701198
fix by change code: pkg/controller/console/console_controller.go:201
` //Labels: cr.Spec.ConsoleDeployment.Spec.Template.ObjectMeta.Labels,
Labels: cr.Spec.ConsoleDeployment.Spec.Selector.MatchLabels, `
--
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: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-operator] caigy commented on issue #114: the 'console' create failed.
Posted by GitBox <gi...@apache.org>.
caigy commented on issue #114:
URL: https://github.com/apache/rocketmq-operator/issues/114#issuecomment-1185092872
`spec.template.metadata.labels` was `nil`, maybe you can `kubectl describe` the `console` resource to check the actual definition of this resource, also check the console `crd` is correct or not.
--
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: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org