diff --git a/deployment.yaml b/deployment.yaml index 4287ca8..4510857 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -1 +1,34 @@ -# \ No newline at end of file +apiVersion: apps/v1 +kind: Deployment +metadata: + name: nginx-test + labels: + app: nginx +spec: + replicas: 1 + selector: + matchLabels: + app: nginx + template: + metadata: + labels: + app: nginx + spec: + containers: + - name: nginx + image: nginx:stable-alpine + ports: + - containerPort: 80 +--- +apiVersion: v1 +kind: Service +metadata: + name: nginx-service +spec: + selector: + app: nginx + ports: + - protocol: TCP + port: 80 + targetPort: 80 + type: ClusterIP \ No newline at end of file