Connect to mongodb with mongoose both in kubernetes

我的梦境 提交于 2021-02-05 08:09:39
问题 I have a microservice which I developed and tested using docker-compose. Now I would like to deploy it to kubernetes. Part of my docker-compose file looks like this: tasksdb: container_name: tasks-db image: mongo:4.4.1 restart: always ports: - '6004:27017' volumes: - ./tasks_service/tasks_db:/data/db networks: - backend tasks-service: container_name: tasks-service build: ./tasks_service restart: always ports: - "5004:3000" volumes: - ./tasks_service/logs:/usr/src/app/logs - ./tasks_service

Not able to deploy to Kubernetes cluster using Kompose

我们两清 提交于 2021-01-28 12:15:31
问题 I'm currently deploying a project on a kubernetes cluster by using Kompose (http://www.kompose.io) to convert the docker-compose configuration to kubernetes configuration files. This is a project for a master class at my university and they took care of the kubernetes cluster, so I'm almost certain that the configuration for it is done properly. FYI, this is the version of that kubernetes cluster; $ kubectl version Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.3",

convert docker-compose.yml file to kubernetes

旧街凉风 提交于 2020-12-13 04:33:49
问题 I am converting a docker-compose file to kubernetes using kompose running the follwing command: $kompose convert -f docker-compose.yml -o kubernetes_image.yaml After the command finish the ouput is the following. WARN Volume mount on the host "/usr/docker/adpater/dbdata" isn't supported - ignoring path on the host INFO Network integration is detected at Source, shall be converted to equivalent NetworkPolicy at Destination WARN Volume mount on the host "/usr/docker/adpater/license.json" isn't