Skip to content

unknown field "spec.service.tpye" #2182

Closed

Description

@only21tender

It's return an error when I create rabbitmq-cluster, the error message just like this:
"Error from server (BadRequest): error when creating "rabbitmq-cluster.yaml": RabbitmqCluster in version "v1beta1" cannot be handled as a RabbitmqCluster: strict decoding error: unknown field "spec.service.tpye""
and the fllow is my rabbitmq-cluster yaml:

apiVersion: rabbitmq.com/v1beta1
kind: RabbitmqCluster
metadata:
name: rabbitmq
namespace: xxx
labels:
app: rabbitmq
spec:
replicas: 3
image: xxx/rabbitmq:3.10.14-management
terminationGracePeriodSeconds: 60
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- rabbitmq
topologyKey: kubernetes.io/hostname

persistence:
storageClassName: sc
storage: 10Gi

resources:
requests:
cpu: 1
memory: 2Gi
limits:
cpu: 1
memory: 2Gi

rabbitmq:
additionalConfig: |
channel_max = 2000
connection_max = 10000
log.console.level = info
cluster_partition_handling = pause_minority
disk_free_limit.relative = 0.2
collect_statistics_interval = 10000
heartbeat = 60

advancedConfig: |
  [
    {rabbit, [
      {loopback_users, []},
      {tcp_listen_options, [
        {backlog, 128},
        {nodelay, true},
        {linger, {true, 0}},
        {exit_on_close, false}
      ]}
    ]}
  ].

additionalPlugins:
  - rabbitmq_top
  - rabbitmq_shovel
  - rabbitmq_shovel_management
  - rabbitmq_mqtt
  - rabbitmq_stomp
  - rabbitmq_stream
  - rabbitmq_web_mqtt
  - rabbitmq_web_stomp 
  - rabbitmq_federation
  - rabbitmq_federation_management  
  - rabbitmq_peer_discovery_k8s
  - rabbitmq_prometheus
  - rabbitmq_management
  - rabbitmq_tracing
  - rabbitmq_delayed_message_exchange

service:
tpye: NodePort
spec:
ports:
- name: amqp
protocol: TCP
port: 5672
targetPort: 5672
- name: http
protocol: TCP
port: 15672
targetPort: 15672

the second time to edit :
service:
tpye: NodePort
override:
service
spec:
type: NodePort
ports:
- name: amqp
protocol: TCP
port: 5672
targetPort: 5672
- name: http
protocol: TCP
port: 15672
targetPort: 15672

I am refer to the offical url: https://www.rabbitmq.com/kubernetes/operator/using-operator#service-type
and the cluster operator tag is 2.21.1 latest

please help me , thanks very muck!

Activity

  1. MirahImage commented on Jun 29, 2026

    @MirahImage
    Member

    It appears you may have made a typo and written "tpye" rather than "type" in your cluster spec. Is that possible?

  2. locked and limited conversation to collaborators on Jun 29, 2026
  3. converted this issue into a discussion #2183 on Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions