Merge pull request #9508 from caesarxuchao/celery-example-v1
update examples/celery-rabbitmq to v1
This commit is contained in:
commit
2af4953d5c
|
@ -34,7 +34,7 @@ The Celery task queue will need to communicate with the RabbitMQ broker. RabbitM
|
||||||
Use the file [`examples/celery-rabbitmq/rabbitmq-service.yaml`](rabbitmq-service.yaml):
|
Use the file [`examples/celery-rabbitmq/rabbitmq-service.yaml`](rabbitmq-service.yaml):
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: v1beta3
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
@ -43,8 +43,6 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- port: 5672
|
- port: 5672
|
||||||
protocol: TCP
|
|
||||||
targetPort: 5672
|
|
||||||
selector:
|
selector:
|
||||||
app: taskQueue
|
app: taskQueue
|
||||||
component: rabbitmq
|
component: rabbitmq
|
||||||
|
@ -64,7 +62,7 @@ This service allows other pods to connect to the rabbitmq. To them, it will be s
|
||||||
A RabbitMQ broker can be turned up using the file [`examples/celery-rabbitmq/rabbitmq-controller.yaml`](rabbitmq-controller.yaml):
|
A RabbitMQ broker can be turned up using the file [`examples/celery-rabbitmq/rabbitmq-controller.yaml`](rabbitmq-controller.yaml):
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: v1beta3
|
apiVersion: v1
|
||||||
kind: ReplicationController
|
kind: ReplicationController
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
@ -85,7 +83,6 @@ spec:
|
||||||
name: rabbitmq
|
name: rabbitmq
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5672
|
- containerPort: 5672
|
||||||
protocol: TCP
|
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
|
@ -101,7 +98,7 @@ Note that bringing up the pod includes pulling down a docker image, which may ta
|
||||||
Bringing up the celery worker is done by running `$ kubectl create -f examples/celery-rabbitmq/celery-controller.yaml`, which contains this:
|
Bringing up the celery worker is done by running `$ kubectl create -f examples/celery-rabbitmq/celery-controller.yaml`, which contains this:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: v1beta3
|
apiVersion: v1
|
||||||
kind: ReplicationController
|
kind: ReplicationController
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
@ -122,7 +119,6 @@ spec:
|
||||||
name: celery
|
name: celery
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5672
|
- containerPort: 5672
|
||||||
protocol: TCP
|
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
|
@ -179,7 +175,7 @@ Flower is a web-based tool for monitoring and administrating Celery clusters. By
|
||||||
To bring up the frontend, run this command `$ kubectl create -f examples/celery-rabbitmq/flower-controller.yaml`. This controller is defined as so:
|
To bring up the frontend, run this command `$ kubectl create -f examples/celery-rabbitmq/flower-controller.yaml`. This controller is defined as so:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: v1beta3
|
apiVersion: v1
|
||||||
kind: ReplicationController
|
kind: ReplicationController
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
@ -201,7 +197,6 @@ spec:
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5555
|
- containerPort: 5555
|
||||||
hostPort: 5555
|
hostPort: 5555
|
||||||
protocol: TCP
|
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
apiVersion: v1beta3
|
apiVersion: v1
|
||||||
kind: ReplicationController
|
kind: ReplicationController
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
@ -19,7 +19,6 @@ spec:
|
||||||
name: celery
|
name: celery
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5672
|
- containerPort: 5672
|
||||||
protocol: TCP
|
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
apiVersion: v1beta3
|
apiVersion: v1
|
||||||
kind: ReplicationController
|
kind: ReplicationController
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
@ -20,7 +20,6 @@ spec:
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5555
|
- containerPort: 5555
|
||||||
hostPort: 5555
|
hostPort: 5555
|
||||||
protocol: TCP
|
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
apiVersion: v1beta3
|
apiVersion: v1
|
||||||
kind: ReplicationController
|
kind: ReplicationController
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
@ -19,7 +19,6 @@ spec:
|
||||||
name: rabbitmq
|
name: rabbitmq
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5672
|
- containerPort: 5672
|
||||||
protocol: TCP
|
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
apiVersion: v1beta3
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
@ -7,8 +7,6 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- port: 5672
|
- port: 5672
|
||||||
protocol: TCP
|
|
||||||
targetPort: 5672
|
|
||||||
selector:
|
selector:
|
||||||
app: taskQueue
|
app: taskQueue
|
||||||
component: rabbitmq
|
component: rabbitmq
|
||||||
|
|
Loading…
Reference in New Issue