https://github.com/natthasath/kubernetes-shell-script
Kubernetes is an open-source container orchestration platform that automates the deployment, scaling, and management of containerized applications. It provides a robust framework for running distributed systems resiliently, ensuring efficient resource utilization and high availability.
https://github.com/natthasath/kubernetes-shell-script
kubenetes script shell
Last synced: 11 months ago
JSON representation
Kubernetes is an open-source container orchestration platform that automates the deployment, scaling, and management of containerized applications. It provides a robust framework for running distributed systems resiliently, ensuring efficient resource utilization and high availability.
- Host: GitHub
- URL: https://github.com/natthasath/kubernetes-shell-script
- Owner: natthasath
- Created: 2024-06-04T03:41:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-06T06:09:04.000Z (over 1 year ago)
- Last Synced: 2025-02-21T23:21:56.741Z (12 months ago)
- Topics: kubenetes, script, shell
- Language: Shell
- Homepage: https://kubernetes.io/
- Size: 17.6 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π Kubernetes Shell Script
Kubernetes is an open-source container orchestration platform that automates the deployment, scaling, and management of containerized applications. It provides a robust framework for running distributed systems resiliently, ensuring efficient resource utilization and high availability.



### β
Requirements
- [Kubectl](https://kubernetes.io/docs/tasks/tools/#kubectl)
### π§© Kubectl Command
| Service | Command (get) | Command (create) | Command (delete) |
|-----------------------|---------------------------------------|----------------------------------------|------------------------------------------|
| Pods | `kubectl get pods` | `kubectl create -f ` | `kubectl delete pod ` |
| Deployments | `kubectl get deployments` | `kubectl create -f ` | `kubectl delete deployment ` |
| ReplicationSets | `kubectl get rs` | `kubectl apply -f ` | `kubectl delete rs ` |
| Services | `kubectl get svc` | `kubectl create -f ` | `kubectl delete service ` |
| ConfigMaps | `kubectl get configmaps` | `kubectl create configmap --from-file=` | `kubectl delete configmap ` |
| Secrets | `kubectl get secrets` | `kubectl create secret generic --from-file=` | `kubectl delete secret ` |
| Namespaces | `kubectl get ns` | `kubectl create ns ` | `kubectl delete ns ` |
| PersistentVolumes | `kubectl get pv` | `kubectl create -f ` | `kubectl delete pv ` |
| PersistentVolumeClaims| `kubectl get pvc` | `kubectl create -f ` | `kubectl delete pvc ` |
| Nodes | `kubectl get nodes` | N/A | N/A |
| Ingress | `kubectl get ingress` | `kubectl create -f ` | `kubectl delete ingress ` |
| Events | `kubectl get events` | N/A | N/A |
### π§© Helm Command
| Service | Command (get) | Command (create) | Command (delete) |
|-------------|-----------------------------|-----------------------------|--------------------------|
| Chart | `helm get` | `helm create` | |
| Chart | `helm get all` | | |
| Chart | `helm get hooks` | | |
| Chart | `helm get manifest` | | |
| Chart | `helm get notes` | | |
| Chart | `helm get values` | | |
| | | `helm package` | |
| | | `helm repo add` | `helm repo remove` |
| | | `helm repo update` | |
| Release | | `helm install` | `helm uninstall` |
| Release | | | `helm delete` |
| Status | `helm status` | | |
| History | `helm history` | | |
| Lint | | `helm lint` | |
| Upgrade | | `helm upgrade` | |
| Rollback | | | `helm rollback` |
| Test | | `helm test` | |
| Dependency | | `helm dependency update` | |
| Dependency | | `helm dependency build` | |
| Plugin | `helm plugin list` | `helm plugin install` | `helm plugin uninstall` |
| Repo | `helm repo list` | | |
### βοΈ Helm Directory Structure
```
βββ πnginx
βββ .helmignore
βββ Chart.yaml
βββ πcharts
βββ nginx-0.1.0.tgz
βββ πtemplates
βββ deployment.yaml
βββ hpa.yaml
βββ ingress.yaml
βββ NOTES.txt
βββ service.yaml
βββ serviceaccount.yaml
βββ πtests
βββ test-connection.yaml
βββ _helpers.tpl
βββ values.yaml
```
| Filename | Description |
|-------------------------|--------------------------------------------------------------------------------------------------------|
| `.helmignore` | Specifies patterns to ignore when packaging Helm charts. |
| `Chart.yaml` | Contains metadata about the Helm chart, such as its name, version, description, and dependencies. |
| `nginx-0.1.0.tgz` | An example of a packaged chart (a tarball), typically generated after running `helm package` on the chart. |
| `deployment.yaml` | A Kubernetes Deployment manifest template defining how your nginx deployment should be configured. |
| `hpa.yaml` | A Horizontal Pod Autoscaler (HPA) manifest template, used to automatically scale the number of replicas based on CPU utilization. |
| `ingress.yaml` | An Ingress manifest template defining how external traffic should reach your nginx service. |
| `NOTES.txt` | Contains optional usage notes or instructions that are displayed after the chart is installed. |
| `service.yaml` | A Kubernetes Service manifest template defining how your nginx service should be exposed within the Kubernetes cluster. |
| `serviceaccount.yaml` | A Kubernetes ServiceAccount manifest template defining the service account used by your nginx deployment. |
| `test-connection.yaml` | An example test manifest to verify the connection to the nginx service. |
| `_helpers.tpl` | Contains helper templates that can be included in other template files to avoid duplication of code. |
| `values.yaml` | Contains default configuration values for your Helm chart. Users can override these values during installation. |