Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running kompose on counter v3 example file #721

Closed
lucj opened this issue Jul 19, 2017 · 12 comments
Closed

Error running kompose on counter v3 example file #721

lucj opened this issue Jul 19, 2017 · 12 comments

Comments

@lucj
Copy link

lucj commented Jul 19, 2017

When running kompose convert on the newly added docker-compose-counter-v3.yaml example file, I got the following error.

$ kompose -f docker-compose-counter-v3.yaml convert
ERRO Could not parse config for project examples : yaml: unmarshal errors:
  line 1: cannot unmarshal !!str `3` into config.RawService
FATA composeObject.Parse() failed, Failed to load compose file: yaml: unmarshal errors:
  line 1: cannot unmarshal !!str `3` into config.RawService
@JadCham
Copy link
Contributor

JadCham commented Jul 19, 2017

@lucj which version of kompose are you using? did you build from master?

@surajnarwade
Copy link
Contributor

surajnarwade commented Jul 20, 2017

@lucj , @JadCham , I think you are using it with version 0.7, I have added this example with kompose( built using master).

@lucj
Copy link
Author

lucj commented Jul 20, 2017

@surajnarwade you'r right, I'm using 0.7.0 (c25b7e8)

@cdrage
Copy link
Member

cdrage commented Jul 20, 2017

@lucj 1.0.0 is coming out today, so you'll be able to download the latest binary and have it work against docker-compose-counter-v3.yaml.

@lucj
Copy link
Author

lucj commented Jul 20, 2017

👍
In the same time I've built from source and have it working on my compose file version 3.

BTW, on a custom docker-compose, it generates only Pod and PersistentVolumeClaim but no Deployment nor Services. Is there a special key so a Deployment is created (default number of replicas ?).

@cdrage
Copy link
Member

cdrage commented Jul 20, 2017

@lucj It should be creating deployments and services. Is your docker-compose file open for us to test it out?

@lucj
Copy link
Author

lucj commented Jul 20, 2017

No problem, here is an extract of the compose file I'm using. I'm sure I'm missing something, still very new to k8s though.

version: '3'
services:
  api:
    image: lucj/api:develop
    deploy:
      restart_policy:
        condition: on-failure

  authn:
    image: 'lucj/authn:develop'
    deploy:
      restart_policy:
        condition: on-failure

  db:
    image: 'mongo:3.4'
    volumes:
      - mongo-data:/data/db
    deploy:
      restart_policy:
        condition: on-failure

  kv:
    image: 'redis:3.0.7-alpine'
    volumes:
      - redis-data:/data
    deploy:
      restart_policy:
        condition: on-failure

  mq:
    image: 'rabbitmq:3.6'
    volumes:
      - rabbit-data:/var/lib/rabbitmq
    deploy:
      restart_policy:
        condition: on-failure

  proxy:
    image: 'lucj/proxy:develop'
    ports:
      - '8000:8000'
      - '8002:8002'
    deploy:
      restart_policy:
        condition: on-failure

  web:
    image: 'lucj/web:develop'
    deploy:
      restart_policy:
        condition: on-failure

  wss:
    image: 'lucj/wss:develop'
    deploy:
      restart_policy:
        condition: on-failure

volumes:
  mongo-data:
  redis-data:
  rabbit-data:

@cdrage
Copy link
Member

cdrage commented Jul 21, 2017

@lucj restart_policy: is the reason why.. See http://kompose.io/user-guide/#restart

We need to document this better / output to log as the pods are created manually.

Same goes with volumes, we don't support any top-level volume keys (yet).

@lucj
Copy link
Author

lucj commented Jul 21, 2017

Thanks a lot, that make sense.
No pb for the top volume key, I do not really need them for testing :)

@surajnarwade
Copy link
Contributor

@lucj , can we close this issue now ?

@lucj
Copy link
Author

lucj commented Jul 24, 2017

@surajnarwade Yes, no problem. Thanks for your help.

@lucj lucj closed this as completed Jul 24, 2017
@davehodg
Copy link

davehodg commented Sep 2, 2021

I would say in general "Unsupported config option for networks service: 'vpcbr'" with no other information is not wildly helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants