Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
Merge d26afd7 into f8d61f8
Browse files Browse the repository at this point in the history
  • Loading branch information
Sinclert committed Jul 4, 2018
2 parents f8d61f8 + d26afd7 commit 50d9e35
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/gettingstarted.rst
Expand Up @@ -107,7 +107,7 @@ Deploy on CERN infrastructure
For now, the traefik ingress needs to be amended so permissions are set
correctly (once fixed in OpenStack this will come automatically.

.. code-bloack:: console
.. code-block:: console
$ kubectl -n kube-system edit ds/ingress-traefik
# add: `serviceAccountName: ingress-traefik` under
Expand Down
10 changes: 6 additions & 4 deletions reana_cluster/backends/kubernetes/k8s.py
Expand Up @@ -23,6 +23,7 @@

import json
import logging
import subprocess

import pkg_resources
import yaml
Expand Down Expand Up @@ -590,10 +591,11 @@ def get_component(self, component_name, component_namespace='default'):
for item in nodeconf.items:
if item.metadata.name == 'minikube' or \
item.metadata.name == self.kubeconfig_context:
# Running on minikube --> get ip-addr from status.addresses
for address in item.status.addresses:
if address.type == 'InternalIP':
minikube_ip = address.address

# Running on minikube --> get ip-addr
minikube_ip = subprocess.check_output(['minikube', 'ip'])
minikube_ip = minikube_ip.decode("utf-8")
minikube_ip = minikube_ip.replace('\n', '')

# Get ip-addresses and ports of the component (K8S service)
comp = self._corev1api.read_namespaced_service(
Expand Down

0 comments on commit 50d9e35

Please sign in to comment.