apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: app-one
  name: app-one
  namespace: demo
spec:
  replicas: 1
  selector:
    matchLabels:
      app: app-one
  strategy: {}
  template:
    metadata:
      labels:
        app: app-one
    spec:
      containers:
      - image: tjololo/hello-go-web
        name: hello-go-web
        readinessProbe:
          failureThreshold: 3
          successThreshold: 1
          initialDelaySeconds: 1
          timeoutSeconds: 1
          periodSeconds: 5
          httpGet:
            path: /hello
            port: 8080
        livenessProbe:
          failureThreshold: 3
          successThreshold: 1
          initialDelaySeconds: 1
          timeoutSeconds: 1
          periodSeconds: 5
          httpGet:
            path: /hello
            port: 8080
        resources:
          requests:
            cpu: 50m
            memory: 64Mi
          limits:
            cpu: 100m
            memory: 128Mi
        ports:
        - containerPort: 8080
          name: http
          protocol: TCP