Kubernetes: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
 Replaced content with "Category:Linux   = How to access Pods externally = * http://alesnosek.com/blog/2017/02/14/accessing-kubernetes-pods-from-outside-of-the-cluster/"  | 
				No edit summary  | 
				||
| (2 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
= How to access Pods externally =  | = How to access Pods externally =  | ||
* http://alesnosek.com/blog/2017/02/14/accessing-kubernetes-pods-from-outside-of-the-cluster/  | * http://alesnosek.com/blog/2017/02/14/accessing-kubernetes-pods-from-outside-of-the-cluster/  | ||
= Disable some RBD features (or k8s will fail to launch pod) =  | |||
* fast-diff  | |||
* object-map  | |||
* deep-flatten  | |||
must all be disabled  | |||
<pre>  | |||
rbd feature disable ssd/elasticsearch-data-01 fast-diff object-map deep-flatten  | |||
</pre>  | |||
= RBD inside kubernetes =  | |||
* https://github.com/kubernetes/examples/tree/master/staging/volumes/rbd  | |||
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:  | |||
<pre>  | |||
...  | |||
            user: admin  | |||
            keyring: /etc/ceph/ceph.client.admin.keyring  | |||
            secretRef:  | |||
              name: ceph-secret  | |||
...  | |||
</pre>  | |||
Link to example rbd manifest: https://github.com/kubernetes/examples/blob/master/staging/volumes/rbd/rbd.yaml  | |||
= Kube-dns - stub local DNS-servers with ip and zones =  | |||
<pre>  | |||
apiVersion: v1  | |||
kind: ConfigMap  | |||
metadata:  | |||
    name: kube-dns  | |||
    namespace: kube-system  | |||
data:  | |||
    stubDomains: |  | |||
        {"hq.skytech.dk": ["192.168.0.24", "10.0.0.24"]}  | |||
</pre>  | |||
Latest revision as of 09:17, 13 August 2019
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
Kube-dns - stub local DNS-servers with ip and zones
apiVersion: v1
kind: ConfigMap
metadata:
    name: kube-dns
    namespace: kube-system
data:
    stubDomains: |
        {"hq.skytech.dk": ["192.168.0.24", "10.0.0.24"]}