kind: Deployment
apiVersion: apps/v1
metadata:
  name: server
  namespace: mtls
spec:
  replicas: 1
  selector:
    matchLabels:
      app: server
  template:
    metadata:
      labels:
        app: server
    spec:
      volumes:
        - name: server
          secret:
            secretName: server
        - name: truststore
          secret:
            secretName: truststore
        - name: config
          configMap:
              name: server
      containers:
        - name: server
          image: 'image-registry.openshift-image-registry.svc:5000/mtls/server:latest'
          ports:
            - containerPort: 8443
              protocol: TCP
          resources: {}
          volumeMounts:
            - name: server
              readOnly: true
              mountPath: /deployments/tls
            - name: truststore
              readOnly: true
              mountPath: /deployments/tls/ca
            - name: config
              mountPath: /home/quarkus
