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

external access to block image #4601

Closed
vahide opened this issue Jan 1, 2020 · 2 comments
Closed

external access to block image #4601

vahide opened this issue Jan 1, 2020 · 2 comments
Labels
ceph main ceph tag

Comments

@vahide
Copy link

vahide commented Jan 1, 2020

How can access externally to block image in rook?
I made NodePort for mon-X services and create client in ceph to access block storage but when client want to connect and execute "rbd --pool PoolName ls", error "connect protocol error (bad banner) on peer" is printed. client edit /etc/ceph/ceph.conf mon_host with masterIP and NodePorts.
In general, as object store external access using rgw-external, how can access externally to block storage in rook?
NodePort type service yaml file is:

apiVersion: v1
kind: Service
metadata:
  name: rook-ceph-mon-X-external-rbd
  namespace: rook-ceph
  labels:
    app: rook-ceph-mon
    ceph_daemon_id: X
    mon: X
    mon_cluster:  rook-ceph
    rook_cluster: rook-ceph
spec:
  type: NodePort
  ports:
  - name: msgr1
    port: 6789
    protocol: TCP
    targetPort: 6789
  - name: msgr2
    port: 3300
    protocol: TCP
    targetPort: 3300
nodePort: 30002
  selector:
    app: rook-ceph-mon
    ceph_daemon_id: X
    mon: X
    mon_cluster:  rook-ceph
    rook_cluster: rook-ceph
  sessionAffinity: None

@galexrt
Copy link
Member

galexrt commented Jan 2, 2020

Checkout #3572 (review) comment. Right now the way to expose a Rook Ceph cluster outside of a Kubernetes cluster is to set hostNetwork: true during initial creation (don't change it after you have created the cluster) of the Rook Ceph cluster.

Related to #3404 and #4270

@galexrt galexrt added ceph main ceph tag question labels Jan 2, 2020
@vahide
Copy link
Author

vahide commented Jan 4, 2020

Thanks @galexrt
I done it by changing hostNetwork: true in cluster.yaml file.
I saw this helpful video "Rook: A new and easy way to run your Ceph storage on Kubernetes"and its URL is: https://www.openstack.org/videos/summits/denver-2019/rook-a-new-and-easy-way-to-run-your-ceph-storage-on-kubernetes

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

No branches or pull requests

2 participants