Update openshift installer to support rabbitmq autoscale

* Switch rabbitmq container out for one that supports autoscale
* Add etcd pod to support autoscale negotiation
This commit is contained in:
Matthew Jones
2017-10-05 20:52:17 -04:00
parent c9ff3e99b8
commit 6ede1dfbea
3 changed files with 78 additions and 3 deletions

View File

@@ -0,0 +1,44 @@
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: etcd
namespace: {{ awx_openshift_project }}
spec:
replicas: 1
template:
metadata:
labels:
name: awx-etcd2
service: etcd
spec:
containers:
- name: etcd
image: elcolio/etcd:latest
ports:
- containerPort: 4001
volumeMounts:
- mountPath: /data
name: datadir
volumes:
- name: datadir
emptyDir: {}
---
apiVersion: v1
kind: Service
metadata:
annotations:
labels:
name: awx-etcd
name: etcd
namespace: {{ awx_openshift_project }}
spec:
ports:
- name: etcd
port: 4001
protocol: TCP
targetPort: 4001
selector:
name: awx-etcd2
sessionAffinity: None
type: ClusterIP