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: 4 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 (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-31T06:22:22.000Z (7 months ago)
- Last Synced: 2024-10-04T11:22:25.597Z (5 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

[](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
![]()