Skip to content

Commit

Permalink
added files
Browse files Browse the repository at this point in the history
  • Loading branch information
SudhakarAnemu committed Mar 14, 2024
1 parent 0a77514 commit b8a148e
Show file tree
Hide file tree
Showing 3 changed files with 119 additions and 56 deletions.
112 changes: 56 additions & 56 deletions Commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,62 +40,62 @@ Sample

Minikube :

| S.No | Command | Description |
| ---- | ----------------------------------------------------------------- | -------------------- |
| 1 | /usr/local/bin/minikube profile list | List out the profile |
| 2 | minikube start --nodes 2 |   |
| 3 | minikube start --driver=docker |   |
| 4 | minikube status |   |
| 5 | minikube stop |   |
| 6 | kubectl describe node minikube |   |
| 7 | kubectl get pods -A |   |
| 8 | kubectl logs pod/\<pod name> -n dev |   |
| 9 | kubectl describe pod/\<pod name> -n dev |   |
| 10 | kubectl delete pod/\<name> -n dev |   |
| 11 | sudo kubectl api-resources |   |
| 12 | sudo kubectl describe pod/coredns-5dd5756b68-7w466 -n kube-system |   |
| 13 | sudo kubectl logs pod/coredns-5dd5756b68-7w466 -n kube-system |   |
| 14 | kubectl edit pod/coredns-5dd5756b68-7w466 -n kube-system |   |
| 15 |   |   |
| 3 |   |   |
| 4 |   |   |
| 5 |   |   |
| 6 |   |   |
| 7 |   |   |
| 8 |   |   |
| 9 |   |   |
| 10 |   |   |
| 11 |   |   |
| 12 |   |   |
| 13 |   |   |
| 14 |   |   |
| 15 |   |   |
| 3 |   |   |
| 4 |   |   |
| 5 |   |   |
| 6 |   |   |
| 7 |   |   |
| 8 |   |   |
| 9 |   |   |
| 10 |   |   |
| 11 |   |   |
| 12 |   |   |
| 13 |   |   |
| 14 |   |   |
| 15 |   |   |
| 3 |   |   |
| 4 |   |   |
| 5 |   |   |
| 6 |   |   |
| 7 |   |   |
| 8 |   |   |
| 9 |   |   |
| 10 |   |   |
| 11 |   |   |
| 12 |   |   |
| 13 |   |   |
| 14 |   |   |
| 15 |   |   |
| S.No | Command | Description |
| ---- | ------------------------------------------------------------------------ | -------------------- |
| 1 | /usr/local/bin/minikube profile list | List out the profile |
| 2 | minikube start --nodes 2 |   |
| 3 | minikube start --driver=docker |   |
| 4 | minikube status |   |
| 5 | minikube stop |   |
| 6 | kubectl describe node minikube |   |
| 7 | kubectl get pods -A |   |
| 8 | kubectl logs pod/\<pod name> -n dev |   |
| 9 | kubectl describe pod/\<pod name> -n dev |   |
| 10 | kubectl delete pod/\<name> -n dev |   |
| 11 | sudo kubectl api-resources |   |
| 12 | sudo kubectl describe pod/coredns-5dd5756b68-7w466 -n kube-system |   |
| 13 | sudo kubectl logs pod/coredns-5dd5756b68-7w466 -n kube-system |   |
| 14 | kubectl edit pod/coredns-5dd5756b68-7w466 -n kube-system |   |
| 15 | sudo kubectl edit pod/coredns-5dd5756b68-7w466 -n kube-system |   |
| 3 | sudo kubectl logs pod/coredns-5dd5756b68-7w466 -c coredns -n kube-system |   |
| 4 | sudo kubectl describe node minikube |   |
| 5 | kubectl get namespace |   |
| 6 | kubectl create namespace dev |   |
| 7 |   |   |
| 8 |   |   |
| 9 |   |   |
| 10 |   |   |
| 11 |   |   |
| 12 |   |   |
| 13 |   |   |
| 14 |   |   |
| 15 |   |   |
| 3 |   |   |
| 4 |   |   |
| 5 |   |   |
| 6 |   |   |
| 7 |   |   |
| 8 |   |   |
| 9 |   |   |
| 10 |   |   |
| 11 |   |   |
| 12 |   |   |
| 13 |   |   |
| 14 |   |   |
| 15 |   |   |
| 3 |   |   |
| 4 |   |   |
| 5 |   |   |
| 6 |   |   |
| 7 |   |   |
| 8 |   |   |
| 9 |   |   |
| 10 |   |   |
| 11 |   |   |
| 12 |   |   |
| 13 |   |   |
| 14 |   |   |
| 15 |   |   |

# Git commands (Git and Git actions)

Expand Down
43 changes: 43 additions & 0 deletions DevOps/Kbrnts/demo-replication.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
apiVersion: v1
kind: ReplicationController
metadata:
name: nginx-rc #name of the controller
namespace: dev
labels: #veriy imp. will use in service,
type: dev
app: nginx
myapp: mynginx
spec:
replicas: 2 #replicationController, ReplicaSet and deployment
# nodeName : minikube-m04 #Here we can give name of the node where the pod needs to be create.
selector:
app: nginx #works on the labels
template: #below details are belongs to Pod
metadata:
name: nginx
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: nginx-service
namespace: dev
labels:
type: service
app: nginx
spec:
type: ClusterIP #NodePorts, Loadbalancer
selector: #labels of above file will be given here
app: nginx
type: dev
ports:
- port: 80
targetPort: 80
20 changes: 20 additions & 0 deletions DevOps/Kbrnts/tst.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: v1
kind: apiVersion: v1
kind: ReplicationController
metadata:
name: myapp
spec:
replicas: <Replicas>
selector:
app: myapp
template:
metadata:
name: myapp
labels:
app: myapp
spec:
containers:
- name: myapp
image: <Image>
ports:
- containerPort: <Port>

0 comments on commit b8a148e

Please sign in to comment.