tecris / kubernetes

Kubernetes on CoreOS - 101

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kubernetes on CoreOS

Tomcat

  1. Assumptions:
  1. Deploy Tomcat 8 on kuberntes
  • Create replica controller & service

    $ kubectl create -f demo/tomcat8-rc.yaml
    $ kubectl create -f demo/tomcat8-svc.yaml
    

http://192.168.122.51:30001

Varia kubectl commands

 $ kubectl describe pod pod_name
 $ kubectl get rc
 $ kubectl describe rc replica_controller_name
 $ kubectl delete pod pod_name
 $ kubectl delete rc tomcat8
 $ kubectl delete svc tomcat8
 $ kubectl scale --replicas=3 rc tomcat8

About

Kubernetes on CoreOS - 101


Languages

Language:Shell 100.0%