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

Unable to deploy service without selector #167

Closed
tandrup opened this issue Sep 17, 2017 · 1 comment
Closed

Unable to deploy service without selector #167

tandrup opened this issue Sep 17, 2017 · 1 comment
Labels
🪲 bug Something isn't working

Comments

@tandrup
Copy link

tandrup commented Sep 17, 2017

I have a service pointing to a Cassandra cluster outside my kubernetes cluster.

But when I try to deploy it using kubernetes-deploy I get this error:

[FATAL][2017-09-17 22:06:56 +0200]	No actions taken
/usr/local/lib/ruby/gems/2.4.0/gems/kubernetes-deploy-0.12.2/lib/kubernetes-deploy/kubernetes_resource/service.rb:53:in `selector': undefined method `map' for nil:NilClass (NoMethodError)
	from /usr/local/lib/ruby/gems/2.4.0/gems/kubernetes-deploy-0.12.2/lib/kubernetes-deploy/kubernetes_resource/service.rb:63:in `fetch_related_replica_count'
	from /usr/local/lib/ruby/gems/2.4.0/gems/kubernetes-deploy-0.12.2/lib/kubernetes-deploy/kubernetes_resource/service.rb:9:in `sync'
	from /usr/local/lib/ruby/gems/2.4.0/gems/kubernetes-deploy-0.12.2/lib/kubernetes-deploy/concurrency.rb:13:in `each'
	from /usr/local/lib/ruby/gems/2.4.0/gems/kubernetes-deploy-0.12.2/lib/kubernetes-deploy/concurrency.rb:13:in `block (2 levels) in split_across_threads'

Here's my service definition:

kind: Endpoints
apiVersion: v1
metadata:
  name: cassandra
  namespace: test
subsets:
  - addresses:
      - ip: 10.1.1.1
      - ip: 10.1.1.2
    ports:
      - name: cassandra
        port: 9042
---
apiVersion: v1
kind: Service
metadata:
  name: cassandra
  namespace: test
spec:
  clusterIP: None
  ports:
    - name: cassandra
      port: 9042
@KnVerey KnVerey added the 🪲 bug Something isn't working label Sep 22, 2017
@KnVerey
Copy link
Contributor

KnVerey commented Dec 19, 2017

Fixed by #211

@KnVerey KnVerey closed this as completed Dec 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants