Skip to content

Commit

Permalink
Updating url link formats
Browse files Browse the repository at this point in the history
Updating url link formats
  • Loading branch information
twogg-git authored Apr 5, 2018
1 parent 09893da commit 8e237c7
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
![header](https://raw.githubusercontent.com/twogg-git/k8s-intro/master/kubernetes_katacoda.png)

**Note:** To follow this tutorial we are going to use [Katacoda Single-Node-Cluster](https://www.katacoda.com/courses/kubernetes/launch-single-node-cluster) a minikube cloud provider. If you want to try this exercices locally, here is [Minikube setup](https://github.com/kubernetes/minikube/) link.

# Kubernetes Intro
**Note:** To follow this tutorial we are going to use [Katacoda Single-Node-Cluster](https://www.katacoda.com/courses/kubernetes/launch-single-node-cluster) a minikube cloud provider. If you want to try this exercices locally, here is [Minikube setup](https://github.com/kubernetes/minikube/) link.

## Initial commands
## Kubernetes basics commands

```sh
minikube start
Expand Down Expand Up @@ -46,7 +45,9 @@ kubectl delete -f deployment_file_name.yml
```


## kubernetes Go sample app
## Kubernetes Deployment Commands
Now, we are going to practice deployment and managemnt commnands of a [Golang app image](https://hub.docker.com/r/twogghub/k8s-intro/) stored in Docker Hub.


```sh
kubectl run twogg --image=twogghub/k8s-intro:1.4-k8s
Expand All @@ -59,15 +60,15 @@ This command performed a few things for you:
- Scheduled the application to run on that Node
- Configured the cluster to reschedule the instance on a new Node when needed


```sh
kubectl expose deployment twogg --port=8080 --external-ip=$(minikube ip) --type=LoadBalancer
kubectl get deployments
```
In this case, there is 1 deployment running a single instance of *twogg*. (The instance is running inside a Docker container on that node). Pods that are running inside Kubernetes are running on a private, isolated network. By default they are visible from other pods and services within the same kubernetes cluster, but not outside that network. When we use kubectl, we're interacting through an API endpoint to communicate with our application.


```sh
kubectl get deployments
kubectl expose deployment twogg --port=8080 --external-ip=$(minikube ip) --type=LoadBalancer
```
In this case, there is 1 deployment running a single instance of *twogg*. (The instance is running inside a Docker container on that node). Pods that are running inside Kubernetes are running on a private, isolated network. By default they are visible from other pods and services within the same kubernetes cluster, but not outside that network. When we use kubectl, we're interacting through an API endpoint to communicate with our application.

```sh
kubectl get services
Expand Down

0 comments on commit 8e237c7

Please sign in to comment.