From 8fac2ff4b6b2e99ba457bb9ce6075f91a17aed48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kone=C4=8Dn=C3=BD?= Date: Wed, 20 Feb 2019 10:56:43 +0100 Subject: [PATCH] the-new-hotness: Use hostAliases instead of external service MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Konečný --- playbooks/openshift-apps/the-new-hotness.yml | 12 ------------ .../the-new-hotness/files/deploymentconfig.yml | 3 +++ .../the-new-hotness/files/endpoints.yml | 10 ---------- .../openshift-apps/the-new-hotness/files/service.yml | 10 ---------- 4 files changed, 3 insertions(+), 32 deletions(-) delete mode 100644 roles/openshift-apps/the-new-hotness/files/endpoints.yml delete mode 100644 roles/openshift-apps/the-new-hotness/files/service.yml diff --git a/playbooks/openshift-apps/the-new-hotness.yml b/playbooks/openshift-apps/the-new-hotness.yml index 362a7ce3d4..c06f63415d 100644 --- a/playbooks/openshift-apps/the-new-hotness.yml +++ b/playbooks/openshift-apps/the-new-hotness.yml @@ -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 \ No newline at end of file diff --git a/roles/openshift-apps/the-new-hotness/files/deploymentconfig.yml b/roles/openshift-apps/the-new-hotness/files/deploymentconfig.yml index 27b17b2fff..48ee8d27c8 100644 --- a/roles/openshift-apps/the-new-hotness/files/deploymentconfig.yml +++ b/roles/openshift-apps/the-new-hotness/files/deploymentconfig.yml @@ -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 diff --git a/roles/openshift-apps/the-new-hotness/files/endpoints.yml b/roles/openshift-apps/the-new-hotness/files/endpoints.yml deleted file mode 100644 index a388961d85..0000000000 --- a/roles/openshift-apps/the-new-hotness/files/endpoints.yml +++ /dev/null @@ -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 diff --git a/roles/openshift-apps/the-new-hotness/files/service.yml b/roles/openshift-apps/the-new-hotness/files/service.yml deleted file mode 100644 index df3ca7f333..0000000000 --- a/roles/openshift-apps/the-new-hotness/files/service.yml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: partner-bugzilla -spec: - ports: - - name: partner-bugzilla - port: 443 - selector: - {}