Kubernetes

From Skytech
Revision as of 09:08, 23 November 2018 by Martin (talk | contribs)
Jump to navigation Jump to search


How to access Pods externally

Disable some RBD features (or k8s will fail to launch pod)

  • fast-diff
  • object-map
  • deep-flatten

must all be disabled

rbd feature disable ssd/elasticsearch-data-01 fast-diff object-map deep-flatten

RBD inside kubernetes

Spent some time toying around with it but couldn't get it to work - it is a must to add the secret as described here: https://github.com/kubernetes/examples/tree/master/staging/volumes/rbd#use-ceph-authentication-secret and also add that part to the manifest:

...
            user: admin
            keyring: /etc/ceph/ceph.client.admin.keyring
            secretRef:
              name: ceph-secret
...

Link to example rbd manifest: https://github.com/kubernetes/examples/blob/master/staging/volumes/rbd/rbd.yaml