Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
81367a3
jenkins env 09-May-22
jaintpharsha May 9, 2022
25de063
jenkins env 09-May-22
jaintpharsha May 9, 2022
be555e3
jenkins parameters 09-May-22
jaintpharsha May 9, 2022
d12eed4
jenkins catchError 09-May-22
jaintpharsha May 9, 2022
e263658
jenkins when condition 09-May-22
jaintpharsha May 9, 2022
67a7050
jenkins if condition 09-May-22
jaintpharsha May 9, 2022
2d1a58a
jenkins if condition 09-May-22
jaintpharsha May 9, 2022
6db032b
jenkins if condition 09-May-22
jaintpharsha May 9, 2022
ae8944c
jenkins shared lib 09-May-22
jaintpharsha May 9, 2022
6f583e2
jenkins shared lib 09-May-22
jaintpharsha May 9, 2022
ad837bb
jenkins shared lib 09-May-22
jaintpharsha May 9, 2022
16f1a5c
jenkins shared lib 09-May-22
jaintpharsha May 9, 2022
4f73b34
jenkins shared lib 09-May-22
jaintpharsha May 9, 2022
11eaa3d
jenkins shared lib 09-May-22
jaintpharsha May 9, 2022
faa8e06
maven 09-May-22
jaintpharsha May 9, 2022
5ef1e31
Docker image and containers 10-May-22
jaintpharsha May 10, 2022
3fa0e47
Docker image and containers 10-May-22
jaintpharsha May 10, 2022
32ae2d9
Dockerfile 12-May-22
jaintpharsha May 12, 2022
1e523d5
Bind Mounts 13-May-22
jaintpharsha May 13, 2022
561fb3d
Volumes, namespaces, expose, publish 14-May-22
jaintpharsha May 14, 2022
cefbaad
Docker networks, multistage, lifecycle, Architecture 15-May-22
jaintpharsha May 15, 2022
8aba4d5
k8s setup 17-May-22
jaintpharsha May 17, 2022
9426858
kubernetes Architecture 19-May-22
jaintpharsha May 19, 2022
5df3972
YAML syntax 20-May-22
jaintpharsha May 20, 2022
a1fe3fa
selectors labesl annotations deployment daemonset 22-May-22
jaintpharsha May 22, 2022
1da038b
stateful/stateless StatefulSet monolothic/microservices service-NP,CI…
jaintpharsha May 24, 2022
95e9654
namespaces 25-May-22
jaintpharsha May 25, 2022
982a237
headless service 26-May-22
jaintpharsha May 26, 2022
163ab11
pv, pvc, pod status and lifecycle 27-May-22
jaintpharsha May 27, 2022
ac077f8
pod patterns / container types 28-May-22
jaintpharsha May 28, 2022
e1d8aea
probes 30-May-22
jaintpharsha May 30, 2022
b0408ef
configmaps 03-June-22
jaintpharsha Jun 3, 2022
336e44c
RBAC 04-June-22
jaintpharsha Jun 4, 2022
6c955a0
afinity, taints 07-June-22
jaintpharsha Jun 7, 2022
192103f
count quota 07-June-22
jaintpharsha Jun 7, 2022
6a4ad8d
Jobs, Deployment stratergy 08-June-22
jaintpharsha Jun 8, 2022
a72b4f4
multi master, hpa vpa 09-June-22
jaintpharsha Jun 9, 2022
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
6 changes: 6 additions & 0 deletions app/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM python
WORKDIR /app
COPY main.py /app
COPY requirements.txt /app
RUN pip install -r requirements.txt
ENTRYPOINT python main.py
24 changes: 24 additions & 0 deletions app/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from flask import Flask
from flask import jsonify
import socket, os

app = Flask(__name__)

@app.route('/')
def print_ip():
hostname = socket.gethostname()
local_ip = socket.gethostbyname(hostname)
return local_ip
# return "This is homepage or root /"

@app.route('/login')
def print_login():
return "This is login page or path /login"

@app.route('/any_path')
def print_login():
resp = jsonify(success=True)
return resp

if __name__ == "__main__":
app.run(host="0.0.0.0", port=80)
1 change: 1 addition & 0 deletions app/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
flask
Loading