To convert eureka microservice to docker-kubernetes

5/6/2019

I am converting eureka-microservice to docker-kubernetes.

When I create a pod, its getting configuration file on gitlab throught configserver x.x.x.x port 8888 . Got following error :

Could not locate PropertySource: I/O error on GET request for "https://x.x.x.x:8888/docker/docker": No route to host (Host unreachable); nested exception is java.net.NoRouteToHostException: No route to host (Host unreachable)

x.x.x.x is an ip address of a configuration server

I have imported Certificate of https://x.x.x.x:8888 to the image. And created service.yml file.

I have created env for the docker and created bootstrap file as well.

Follow this : https://groups.google.com/forum/#!topic/kubernetes-dev/TD4v5710jkQ

I have created endpoint for redirect to configserver.

apiVersion: v1
kind: Endpoints
metadata:
  name: configserver_name
  namespace: default
subsets:
- addresses:
  - ip: x.x.x.x
  ports:
  - port: 8888
-- Thanh Nguyen Van
docker
kubernetes
netflix-eureka

0 Answers