Skip to content

Commit 845d224

Browse files
committed
Updated and added examples with last version of pyms
1 parent eee7385 commit 845d224

File tree

7 files changed

+18
-4
lines changed

7 files changed

+18
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ RUN chmod 777 $DATABASE_DIR
2323
EXPOSE 5000
2424
USER python
2525

26-
CMD ["gunicorn", "--worker-class", "gevent", "--workers", "8", "--log-level", "INFO", "--bind", "0.0.0.0:5000", "manage:app"]
26+
CMD ["gunicorn", "--workers", "8", "--log-level", "INFO", "--bind", "0.0.0.0:5000", "manage:app"]

config-docker.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ pyms:
44
swagger:
55
path: "swagger"
66
file: "swagger.yaml"
7+
tracer:
8+
client: "jaeger"
9+
host: "localhost"
10+
component_name: "Python Microservice"
711
ms:
812
DEBUG: false
913
TESTING: false

config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ pyms:
44
swagger:
55
path: "swagger"
66
file: "swagger.yaml"
7+
tracer:
8+
client: "jaeger"
9+
host: "localhost"
10+
component_name: "Python Microservice"
711
ms:
812
DEBUG: false
913
TESTING: false

docs/runinkubernetes.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ Use MS with Docker
88

99
Use MS with Kubernetes localy
1010
-----------------------------
11-
Configure your service.yaml (TODO: create docs to configure kubernetes service.yaml)
11+
We create a extensive example an tutorial about use Python microservice scaffold with Kubernetes in this repository:
12+
https://github.com/python-microservices/microservices-chat
13+
14+
In the nexts lines, you can find a simple tutorial tu run this microservice in a simple Kubernetes cluster
1215

1316
* Installing Kubernetes...
1417

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Flask-SQLAlchemy==2.4.1
22
SQLAlchemy==1.3.11
33
Flask-Script==2.0.6
4-
py-ms==1.3.2
4+
py-ms==1.4.1

service.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
kind: Service
21
apiVersion: v1
32
kind: Service
43
metadata:

tests/config-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ pyms:
44
swagger:
55
path: "swagger"
66
file: "swagger.yaml"
7+
tracer:
8+
client: "jaeger"
9+
host: "localhost"
10+
component_name: "Python Microservice"
711
ms:
812
DEBUG: false
913
TESTING: true

0 commit comments

Comments
 (0)