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 with autogenerated cluster name #713

Closed
nikhilrayaprolu opened this issue Jul 15, 2017 · 12 comments
Closed

error with autogenerated cluster name #713

nikhilrayaprolu opened this issue Jul 15, 2017 · 12 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@nikhilrayaprolu
Copy link

image
image

@surajnarwade
Copy link
Contributor

@nikhilrayaprolu , can you paste your docker-compose file here ?

@surajssd
Copy link
Member

surajssd commented Jul 18, 2017

@nikhilrayaprolu your env name is wrong, you cannot define env that has . dot in it. You can only have capital and small characters, dashes and underscores and numbers.

Also see the regex in the error:

a valid C identifier must start with alphabetic character or '_', followed by a string
of alphanumeric characters or '_' (e.g. 'my_name',  or 'MY_NAME',  or 'MyName',
regex used for validation is '[A-Za-z_][A-Za-z0-9_]*')

So change the name of env cluster.name to something else, similarly for all other envs.

I don't think kompose can do anything with this other than adding checks on our side. This comes from kubernetes.

@surajnarwade
Copy link
Contributor

@nikhilrayaprolu , is your problem resolved, can we close this issue ?

@nikhilrayaprolu
Copy link
Author

@surajnarwade @surajssd
here is my docker-compose.yml


version: '2'
services:
  yacy_mcp:
    build: .
    links:
      - elasticsearch
    ports:
      - 8100:8100

  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:5.5.0
    container_name: elasticsearch
    environment:
      - cluster.name=yacygrid
      - bootstrap.memory_lock=true
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
      - xpack.security.enabled=false
    ulimits:
      memlock:
        soft: -1
        hard: -1
    mem_limit: 1g
    volumes:
      - esdata1:/usr/share/elasticsearch/data
    ports:
      - 9200:9200
    expose:
      - "9300"
      - "9200"

    
volumes:
  esdata1:
    driver: local

@nikhilrayaprolu
Copy link
Author

that is standard syntax by elastic regarding env variables
https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html

@surajssd
Copy link
Member

surajssd commented Jul 19, 2017

@nikhilrayaprolu you can get some inspiration from elastic example in k8s repo or helm chart for elastic.

Also issue is filed with elastic upstream and PR to improve their docker-images to enable it to run on k8s.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or @fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 1, 2018
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten
/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jan 31, 2018
@surajnarwade
Copy link
Contributor

/remove-lifecycle rotten

@k8s-ci-robot k8s-ci-robot removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Feb 8, 2018
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label May 9, 2018
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten
/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jun 8, 2018
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

5 participants