Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review this #4

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Empty file added 123
Empty file.
Empty file added 1234
Empty file.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

Sample Java Applicaiton V1.2
ravi change

kfzxflkasdfklf;asdfa
asddfasdf
Sample Java Applicaiton V1.10
Empty file added cleared.txt
Empty file.
21 changes: 21 additions & 0 deletions deploy/deploy-kube.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
- hosts: "{{ env }}"
become: yes
tasks:
- name: remove any previous app services
shell: |
if [ `kubectl get deploy | grep -v NAME | awk '{print $1}' | grep myapp | wc -l` -gt 0 ]; then
kubectl delete deploy `kubectl get deploy | grep -v NAME | awk '{print $1}' | grep myapp`
else
echo "No app deployments found"
fi
if [ `kubectl get svc | grep myapp-svc | awk '{print $1}' | wc -l` -gt 0 ]; then
kubectl delete svc `kubectl get svc | grep myapp-svc | awk '{print $1}'`
else
echo "No app service found"
fi
- name: deploy app
command: kubectl create deploy myapp --image=lerndevops/samplejavaapp:{{ build }}
- name: increase replicas
command: kubectl scale deploy myapp --replicas=2
- name: deploy service
command: kubectl expose deploy myapp --name myapp-svc --port 8080 --type NodePort
Empty file added test
Empty file.
1 change: 1 addition & 0 deletions testingnew
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello
Empty file added venkat
Empty file.
Empty file added xyz
Empty file.