diff --git a/docker/userService/userServer.yaml b/docker/userService/userServer.yaml new file mode 100644 index 0000000..8663bd1 --- /dev/null +++ b/docker/userService/userServer.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + name: title +spec: + selector: + app: title + ports: + - protocol: TCP + port: 80 + targetPort: 8080 + type: NodePort + \ No newline at end of file diff --git a/docker/userService/userService.yaml b/docker/userService/userService.yaml new file mode 100644 index 0000000..c82ec93 --- /dev/null +++ b/docker/userService/userService.yaml @@ -0,0 +1,26 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: title + labels: + app: title +spec: + replicas: 1 + selector: + matchLabels: + app: title + template: + metadata: + name: title + labels: + app: title + spec: + containers: + - name: title + image: nginx + imagePullPolicy: IfNotPresent + ports: + - containerPort: 80 + protocol: TCP + restartPolicy: Always + \ No newline at end of file