Skip to content
Snippets Groups Projects
Forked from nomad-lab / nomad-lab-base
311 commits behind the upstream repository.
rabbitMq-test.yaml 863 B
apiVersion: v1
kind: Service
metadata:
  labels:
    component: rabbitmq
  name: default-rabbitmq
spec:
  type: NodePort
  ports:
    - port: 5672
      name: main-port
      targetPort: 5672
      protocol: TCP
    - port: 15672
      name: admin-port
      targetPort: 15672
      protocol: TCP
  selector:
    app: taskQueue
    component: rabbitmq
---
apiVersion: v1
kind: ReplicationController
metadata:
  labels:
    component: rabbitmq
  name: rabbitmq-controller
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: taskQueue
        component: rabbitmq
    spec:
      containers:
      - image: rabbitmq:3-management
        name: rabbitmq
        ports:
          - containerPort: 5672
            name: main-port
            protocol: TCP
          - containerPort: 15672
            name: admin-port
            protocol: TCP
---