-
Notifications
You must be signed in to change notification settings - Fork 15
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
Adding README.md #3
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,44 @@ | ||||||
# Simple Kubernetes controller | ||||||
|
||||||
A simple controller that exposes your Kubernetes deployment automatically to external world. Please find youtube series . | ||||||
|
||||||
[Writing a Kubernetes custom controller](https://www.youtube.com/watch?v=lzoWSfvE2yA&list=PLh4KH3LtJvRQ43JAwwjvTnsVOMp0WKnJO&index=1&t=224s) | ||||||
|
||||||
## Installation | ||||||
|
||||||
kubectl create a namespace `ekpose` | ||||||
|
||||||
```bash | ||||||
kubectl create ns ekspose | ||||||
``` | ||||||
|
||||||
## install using `manifests` folder | ||||||
|
||||||
```python | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
kubectl apply -f manifests/ | ||||||
clusterrole.rbac.authorization.k8s.io/ekspose-cr created | ||||||
clusterrolebinding.rbac.authorization.k8s.io/ekspose-crb created | ||||||
deployment.apps/ekspose created | ||||||
serviceaccount/ekspose-sa created | ||||||
``` | ||||||
|
||||||
## status Checking . | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
1- create a deployment . | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
```bash | ||||||
kubectl create deployment test-ekpose --image=nginx | ||||||
deployment.apps/test-ekpose created | ||||||
``` | ||||||
2- check if ing is created or no . | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
```sh | ||||||
kubectl get ing | ||||||
NAME CLASS HOSTS ADDRESS PORTS AGE | ||||||
test-ekpose <none> * c04c862c-306f-48d0-84c0-54a80730d855.k8s.civo.com 80 44s | ||||||
``` | ||||||
|
||||||
## Contributing | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't usually accept pull requests because people are going to follow this repo after watching the youtube video and they would be confused to see some changes here that are not covered in the videos. So, let's remove this section. |
||||||
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. | ||||||
|
||||||
Please make sure to update tests as appropriate. | ||||||
|
||||||
## License | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you please explain this a bit, why did we explicitly choose MIT? We can remove as well. |
||||||
[MIT](https://choosealicense.com/licenses/mit/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.