diff --git a/README.md b/README.md index 8434dfa..cae4549 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# hello-python +# hello-python11 Very simple hello world python Flask application. diff --git a/app/main.py b/app/main.py deleted file mode 100644 index 5aff7f2..0000000 --- a/app/main.py +++ /dev/null @@ -1,9 +0,0 @@ -from flask import Flask -app = Flask(__name__) - -@app.route("/") -def hello(): - return "Hello from Python!" - -if __name__ == "__main__": - app.run(host='0.0.0.0') diff --git a/app/requirements.txt b/app/requirements.txt deleted file mode 100644 index 2077213..0000000 --- a/app/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -Flask \ No newline at end of file diff --git a/docker/Dockerfile b/docker/Dockerfile deleted file mode 100644 index ce620c2..0000000 --- a/docker/Dockerfile +++ /dev/null @@ -1,9 +0,0 @@ -FROM python:3.7 - -RUN mkdir /app -WORKDIR /app -ADD . /app/ -RUN pip install -r requirements.txt - -EXPOSE 5000 -CMD ["python", "/app/main.py"] \ No newline at end of file diff --git a/kubernetes/deployment.yaml b/kubernetes/deployment.yaml deleted file mode 100644 index fdaeb8e..0000000 --- a/kubernetes/deployment.yaml +++ /dev/null @@ -1,32 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: hello-python-service -spec: - selector: - app: hello-python - ports: - - protocol: "TCP" - port: 6000 - targetPort: 5000 - type: LoadBalancer - - ---- -apiVersion: apps/v1beta1 -kind: Deployment -metadata: - name: hello-python -spec: - replicas: 4 - template: - metadata: - labels: - app: hello-python - spec: - containers: - - name: hello-python - image: hello-python:latest - imagePullPolicy: Never - ports: - - containerPort: 5000 diff --git a/python_code b/python_code new file mode 160000 index 0000000..69f6f48 --- /dev/null +++ b/python_code @@ -0,0 +1 @@ +Subproject commit 69f6f485e61bdfab705625f42bc1e59f72a960e8