diff --git a/docker/Dockerfile b/app/Dockerfile similarity index 100% rename from docker/Dockerfile rename to app/Dockerfile diff --git a/app/deployment.yaml b/app/deployment.yaml new file mode 100644 index 0000000..d660d40 --- /dev/null +++ b/app/deployment.yaml @@ -0,0 +1,34 @@ +apiVersion: v1 +kind: Service +metadata: + name: hello-python-service +spec: + selector: + app: hello-python + ports: + - protocol: "TCP" + port: 36000 + targetPort: 5000 + type: LoadBalancer + +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: hello-python +spec: + selector: + matchLabels: + app: hello-python + replicas: 1 + template: + metadata: + labels: + app: hello-python + spec: + containers: + - name: hello-python + image: emcnicholas/hello-python:latest + imagePullPolicy: Never + ports: + - containerPort: 5000 diff --git a/kubernetes/deployment.yaml b/kubernetes/deployment.yaml index fdaeb8e..1e55867 100644 --- a/kubernetes/deployment.yaml +++ b/kubernetes/deployment.yaml @@ -13,7 +13,7 @@ spec: --- -apiVersion: apps/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: hello-python