apiVersion: v1
kind: Pod
metadata:
  name: tls-test
  labels:
    role: myrole
spec:
  # volumes:
  #   - name: secret-volume
  #     secret:
  #       secretName: example-com-tls
  containers:
    - name: web
      image: localhost:5000/tls-create
      # volumeMounts:
      #   - name: secret-volume
      #     mountPath: /mycerts
      imagePullPolicy: Always
      # ports:
      #   - name: web
      #     containerPort: 8080
      #     protocol: TCP
# ---
# apiVersion: v1
# kind: Service
# metadata:
#   name: my-service
# spec:
#   selector:
#     role: myrole
#   ports:
#     - protocol: TCP
#       port: 8080
#       targetPort: 8080
