---
apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    fabric8.io/git-commit: 609e5cb05a7f118d93f47a1dc66a31d899315be2
    fabric8.io/git-branch: micro-config
    fabric8.io/git-url: https://github.com/rqwzhou/DO288-apps
  labels:
    app: hello
    provider: fabric8
    version: "1.0"
    group: com.redhat.training.openshift
  name: hello
spec:
  replicas: 1
  revisionHistoryLimit: 2
  selector:
    matchLabels:
      app: hello
      provider: fabric8
      group: com.redhat.training.openshift
  template:
    metadata:
      annotations:
        fabric8.io/git-commit: 609e5cb05a7f118d93f47a1dc66a31d899315be2
        fabric8.io/git-branch: micro-config
        fabric8.io/git-url: https://github.com/rqwzhou/DO288-apps
      labels:
        app: hello
        provider: fabric8
        version: "1.0"
        group: com.redhat.training.openshift
    spec:
      containers:
      - env:
        - name: KUBERNETES_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
        envFrom:
        - configMapRef:
            name: env-config
        image: hello:1.0
        imagePullPolicy: IfNotPresent
        name: thorntail-v2
        ports:
        - containerPort: 8080
          name: http
          protocol: TCP
        - containerPort: 9779
          name: prometheus
          protocol: TCP
        - containerPort: 8778
          name: jolokia
          protocol: TCP
        securityContext:
          privileged: false
