Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rohankanojia/kubernetes-client-inside-pod
An Example of using Fabric8 Kubernetes Client inside a Pod
https://github.com/rohankanojia/kubernetes-client-inside-pod
fabric8-kubernetes-client java kubernetes namespace pods
Last synced: 2 months ago
JSON representation
An Example of using Fabric8 Kubernetes Client inside a Pod
- Host: GitHub
- URL: https://github.com/rohankanojia/kubernetes-client-inside-pod
- Owner: rohanKanojia
- License: apache-2.0
- Created: 2020-04-17T15:07:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-31T06:22:22.000Z (5 months ago)
- Last Synced: 2024-10-04T11:22:25.597Z (3 months ago)
- Topics: fabric8-kubernetes-client, java, kubernetes, namespace, pods
- Language: Java
- Homepage: https://github.com/fabric8io/kubernetes-client
- Size: 16.6 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
# Kubernetes Client Inside A Pod
![License](https://img.shields.io/github/license/rohanKanojia/kubernetes-client-demo)
[![Twitter](https://img.shields.io/twitter/follow/fabric8io?style=social)](https://twitter.com/fabric8io)This is a demo application which demonstrates use of [Fabric8 Kubernetes Client](https://github.com/fabric8io/kubernetes-client). It just tries to list number of pods in desired namespace.
## Make sure to give the default service account cluster-admin privileges:
Example for `ServiceAccount` named `default` in `default` namespace:
```
kubectl create clusterrolebinding default-pod --clusterrole cluster-admin --serviceaccount=default:default
```## Deploy Application to Kubernetes Using [Eclipse JKube](https://github.com/eclipse/jkube)
```
mvn package k8s:build k8s:resource k8s:apply
```### Access Service