# Learning manifest. Use an existing chosen namespace for both objects.
# Replace this placeholder with an image that listens on 8080 and serves /ready.
# Replica count does not guarantee placement on different nodes.
apiVersion: apps/v1
kind: Deployment
metadata:
  name: atlas-web
spec:
  replicas: 2
  selector:
    matchLabels:
      app: atlas-web
  template:
    metadata:
      labels:
        app: atlas-web
    spec:
      containers:
        - name: web
          image: registry.example.com/team/web:REPLACE_ME
          ports:
            - name: http
              containerPort: 8080
          readinessProbe:
            httpGet:
              path: /ready
              port: http
            periodSeconds: 5
            failureThreshold: 2
---
apiVersion: v1
kind: Service
metadata:
  name: atlas-web
spec:
  type: ClusterIP
  selector:
    app: atlas-web
  ports:
    - name: http
      port: 80
      targetPort: http
