Created kubernetes-py-nginx example
ADD
kubernetes-py-nginx/.gitignore
+*.pyc
+venv/

ADD
kubernetes-py-nginx/Pulumi.yaml
+name: kubernetes-py-nginx
+runtime:
+ name: python
+ options:
+ virtualenv: venv
+description: Example of a Kubernetes Stateless Application Deployment, using Nginx

ADD
kubernetes-py-nginx/__main__.py
+# Copyright 2016-2020, Pulumi Corporation. All rights reserved.
+
+import pulumi
+from pulumi_kubernetes.apps.v1 import Deployment
+
+config = pulumi.Config()
+nginxLabels = { "app": "nginx" }
+nginxDeployment = Deployment(
+ "nginx-deployment",
+ spec={
+ "selector": { "matchLabels": nginxLabels },
+ "replicas": 2 if config.get_int("replicas") is None else config.get_int("replicas"),
+ "template": {
+ "metadata": { "labels": nginxLabels },
+ "spec": {
+ "containers": [{
+ "name": "nginx",
+ "image": "nginx:1.7.9",
+ "ports": [{ "containerPort": 80 }],
+ }],
+ },
+ },
+ })
+
+pulumi.export("nginx", nginxDeployment.metadata["name"])

ADD
kubernetes-py-nginx/requirements.txt
+pulumi>=2.0.0,<3.0.0
+pulumi-kubernetes>=2.0.0,<3.0.0

Created kubernetes-py-nginx example (#714)