the-new-hotness: Use hostAliases instead of external service

Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
Michal Konečný 2019-02-20 10:56:43 +01:00
parent baf7ab6181
commit 8fac2ff4b6
4 changed files with 3 additions and 32 deletions

View file

@ -64,18 +64,6 @@
file: deploymentconfig.yml
objectname: deploymentconfig.yml
- role: openshift/object
app: the-new-hotness
file: service.yml
objectname: service.yml
when: env == "staging"
- role: openshift/object
app: the-new-hotness
file: endpoints.yml
objectname: endpoints.yml
when: env == "staging"
- role: openshift/rollout
app: the-new-hotness
dcname: the-new-hotness

View file

@ -23,6 +23,9 @@ items:
app: the-new-hotness
deploymentconfig: the-new-hotness
spec:
hostAliases:
- hostnames: partner-bugzilla.redhat.com
ip: 209.132.183.72
containers:
- name: the-new-hotness
image: the-new-hotness/the-new-hotness:latest

View file

@ -1,10 +0,0 @@
apiVersion: v1
kind: Endpoints
metadata:
name: partner-bugzilla
subsets:
- addresses:
- ip: 209.132.183.72
ports:
- port: 443
name: partner-bugzilla

View file

@ -1,10 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: partner-bugzilla
spec:
ports:
- name: partner-bugzilla
port: 443
selector:
{}