apiVersion: apps/v1 kind: Deployment metadata: name: device-api namespace: hlaeja labels: app: device-api environment: testing tier: frontend spec: replicas: 1 selector: matchLabels: app: device-api template: metadata: labels: app: device-api spec: imagePullSecrets: - name: github containers: - name: device-api-app image: ghcr.io/swordsteel/hlaeja-device-api:0.4.0 imagePullPolicy: IfNotPresent ports: - containerPort: 8443 envFrom: - configMapRef: name: device-api env: - name: SERVER_SSL_KEY_STORE_PASSWORD valueFrom: secretKeyRef: name: device-api-keystore key: keystore-password volumeMounts: - name: keystore-volume mountPath: /app/resources/cert/keystore.p12 subPath: keystore.p12 readOnly: true - name: jwt-volume mountPath: /app/resources/cert/public_key.pem subPath: public_key.pem readOnly: true volumes: - name: keystore-volume secret: secretName: device-api-keystore items: - key: keystore.p12 path: keystore.p12 - name: jwt-volume secret: secretName: device-jwt-public-key items: - key: public_key.pem path: public_key.pem