Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion docs/02-Core-Concepts/11-Pods.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,26 @@ In this section, we will take a look at PODS.
Lets now take a look to create a nginx pod using **`kubectl`**.

- To deploy a docker container by creating a POD.
```
```bash
$ kubectl run nginx --image nginx
```
- Using yaml file (pod-definition.yml)
```yaml
apiVersion: v1
kind: Pod
metadata:
name: myapp-pod
labels:
app: myapp
type: front-end
spec:
containers:
- name: nginx-container
image: nginx
```
```bash
kubectl apply -f pod-definition.yml
```

- To get the list of pods
```
Expand Down