This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM python:3.5-alpine | |
| COPY . /app | |
| WORKDIR /app | |
| CMD python ./main.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| print("Hello World Printed every minute!!!") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: hello-python-service | |
| spec: | |
| selector: | |
| app: hello-python | |
| ports: | |
| - protocol: "TCP" | |
| port: 6000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: hello-python-service | |
| spec: | |
| selector: | |
| app: hello-python | |
| ports: | |
| - protocol: "TCP" | |
| port: 6000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM python:3-alpine | |
| RUN mkdir /app | |
| WORKDIR /app | |
| COPY main.py /app | |
| RUN pip install flask | |
| EXPOSE 5000 | |
| CMD ["python", "main.py"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| from flask import Flask | |
| app = Flask(__name__) | |
| @app.route("/") | |
| def hello(): | |
| return "Hello" | |
| @app.route('/hellovamsi') | |
| def hellovamsi(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| from flask import Flask | |
| app = Flask(__name__) | |
| @app.route("/") | |
| def hello(): | |
| return "Hello" | |
| @app.route('/hellovamsi') | |
| def hellovamsi(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 | |
| kind: DaemonSet | |
| metadata: | |
| name: fluent-bit | |
| labels: | |
| app: fluent-bit | |
| spec: | |
| selector: | |
| matchLabels: | |
| app: fluent-bit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 | |
| kind: DaemonSet | |
| metadata: | |
| name: fluent-bit | |
| labels: | |
| app: fluent-bit | |
| spec: | |
| selector: | |
| matchLabels: | |
| app: fluent-bit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: serving.knative.dev/v1alpha1 | |
| kind: Service | |
| metadata: | |
| name: hellowhale-knative | |
| namespace: default | |
| spec: | |
| template: | |
| spec: | |
| containers: | |
| - image: docker.io/vamsijakkula/hellowhale-knative |