794a814275
Make a Magnum demonstration that creates a baymodel and bay. Just run demos/magnum/launch to make it work. This depends on Neutron. Borrow the v1beta3 redis example from the examples repository in Kubernetes. Change-Id: I448a5890bfe0c1675914ae7dbd02fad03f4b1eeb
29 lines
510 B
YAML
29 lines
510 B
YAML
apiVersion: v1beta3
|
|
kind: ReplicationController
|
|
metadata:
|
|
name: redis
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
name: redis
|
|
template:
|
|
metadata:
|
|
labels:
|
|
name: redis
|
|
spec:
|
|
containers:
|
|
- name: redis
|
|
image: kubernetes/redis:v1
|
|
ports:
|
|
- containerPort: 6379
|
|
resources:
|
|
limits:
|
|
cpu: "1"
|
|
volumeMounts:
|
|
- mountPath: /redis-master-data
|
|
name: data
|
|
volumes:
|
|
- name: data
|
|
emptyDir: {}
|
|
|