Skip to content
Snippets Groups Projects
Commit 56d42ff1 authored by Sebastian Rieger's avatar Sebastian Rieger
Browse files

Update 'kubernetes-example/kubectl-intro.md'

parent 605eb739
Branches
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ These are two approaches to create the description in Kuberentes: ...@@ -8,7 +8,7 @@ These are two approaches to create the description in Kuberentes:
# create a namespace # create a namespace
kubectl create namespace web-test kubectl create namespace web-test
# Then choose one of the following ways: # Then choose one way:
# (1) Create the description # (1) Create the description
kubectl create -f nginx.yml -f service.yml kubectl create -f nginx.yml -f service.yml
...@@ -31,7 +31,7 @@ kubectl get -n web-test pods ...@@ -31,7 +31,7 @@ kubectl get -n web-test pods
kubectl get -n web-test deployment kubectl get -n web-test deployment
# show services for our namespace # show services for our namespace
kubectl get -n web-test service kubectl show -n web-test service
# show logs of deployed nginx instances # show logs of deployed nginx instances
kubectl logs -n web-test deployment/nginx-deployment kubectl logs -n web-test deployment/nginx-deployment
...@@ -67,7 +67,6 @@ The nginx instances are reachable at the floating ips of the **node**-instances ...@@ -67,7 +67,6 @@ The nginx instances are reachable at the floating ips of the **node**-instances
### Nginx description ### Nginx description
*nginx.yml:*
```yml ```yml
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
...@@ -94,7 +93,6 @@ spec: ...@@ -94,7 +93,6 @@ spec:
### Nginx service description ### Nginx service description
*service.yml:*
```yml ```yml
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
...@@ -111,5 +109,5 @@ spec: ...@@ -111,5 +109,5 @@ spec:
targetPort: 80 targetPort: 80
# Optional field # Optional field
# By default and for convenience, the Kubernetes control plane will allocate a port from a range (default: 30000-32767) # By default and for convenience, the Kubernetes control plane will allocate a port from a range (default: 30000-32767)
nodePort: 30007 nodePort: 3000
``` ```
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment