apiVersion: apps/v1
kind: Deployment
metadata:
  namespace: logistics-base-ns
  name: consul-deploy
  labels:
    name: consul-deploy
    app: logistics-app
    tier: base
spec:
  replicas: 1
  selector:
    matchLabels:
      name: consul-pod
      app: logistics-app
      tier: base
  template:
    metadata:
      namespace: logistics-base-ns
      name: consul-pod
      labels:
        name: consul-pod
        app: logistics-app
        tier: base
    spec:
      containers:
        - name: consul
          image: consul:1.8.4
          ports:
            - containerPort: 8500