|  | # sw-backend-admin-bff.yaml | 
|  |  | 
|  | --- | 
|  | apiVersion: v1 | 
|  | kind: ConfigMap | 
|  | metadata: | 
|  | namespace: sw-admin-framework | 
|  | name: sw-backend-admin-bff-env | 
|  | data: | 
|  | SERVER_PORT: "8080" | 
|  | SSL_ENABLED: "false" | 
|  | #SSL_KEYSTORE_FILE: file:/certs/server/server.keystore | 
|  | #SSL_TRUSTSTORE_FILE: file:/certs/server/server.truststore | 
|  |  | 
|  | SW_BACKEND_BASE_API_URI: http://sw-backend-admin-sa-svc.sw-admin-framework.svc.cluster.local:8080 | 
|  | SW_BACKEND_BASE_API_CLIENT_AUTH_ENABLED: "false" | 
|  | #SW_BACKEND_BASE_API_CLIENT_AUTH_KEYSTORE_FILE: file:/certs/common/common.keystore | 
|  | #SW_BACKEND_BASE_API_CLIENT_AUTH_TRUSTSTORE_FILE: file:/certs/common/common.truststore | 
|  |  | 
|  | SW_BACKEND_SYSTEM_API_URI: http://sw-backend-admin-sa-svc.sw-admin-framework.svc.cluster.local:8080 | 
|  | SW_BACKEND_SYSTEM_API_CLIENT_AUTH_ENABLED: "false" | 
|  | #SW_BACKEND_SYSTEM_API_CLIENT_AUTH_KEYSTORE_FILE: file:/certs/common/common.keystore | 
|  | #SW_BACKEND_SYSTEM_API_CLIENT_AUTH_TRUSTSTORE_FILE: file:/certs/common/common.truststore | 
|  |  | 
|  | SW_BACKEND_BIZ_API_URI: http://sw-backend-biz-sa-svc.sw-admin-framework.svc.cluster.local:8080 | 
|  | SW_BACKEND_BIZ_API_CLIENT_AUTH_ENABLED: "false" | 
|  | #SW_BACKEND_BIZ_API_CLIENT_AUTH_KEYSTORE_FILE: file:/certs/common/common.keystore | 
|  | #SW_BACKEND_BIZ_API_CLIENT_AUTH_TRUSTSTORE_FILE: file:/certs/common/common.truststore | 
|  |  | 
|  | --- | 
|  | apiVersion: v1 | 
|  | kind: Secret | 
|  | metadata: | 
|  | namespace: sw-admin-framework | 
|  | name: sw-backend-admin-bff-env-secret | 
|  | type: Opaque | 
|  | data: | 
|  | #SSL_KEYSTORE_PASSWORD: "" | 
|  | #SSL_TRUSTSTORE_PASSWORD: "" | 
|  |  | 
|  | #SW_BACKEND_BASE_API_CLIENT_AUTH_KEY_PASSWORD: "" | 
|  | #SW_BACKEND_BASE_API_CLIENT_AUTH_KEYSTORE_PASSWORD: "" | 
|  | #SW_BACKEND_BASE_API_CLIENT_AUTH_TRUSTSTORE_PASSWORD: "" | 
|  |  | 
|  | #SW_BACKEND_SYSTEM_API_CLIENT_AUTH_KEY_PASSWORD: "" | 
|  | #SW_BACKEND_SYSTEM_API_CLIENT_AUTH_KEYSTORE_PASSWORD: "" | 
|  | #SW_BACKEND_SYSTEM_API_CLIENT_AUTH_TRUSTSTORE_PASSWORD: "" | 
|  |  | 
|  | #SW_BACKEND_BIZ_API_CLIENT_AUTH_KEY_PASSWORD: "" | 
|  | #SW_BACKEND_BIZ_API_CLIENT_AUTH_KEYSTORE_PASSWORD: "" | 
|  | #SW_BACKEND_BIZ_API_CLIENT_AUTH_TRUSTSTORE_PASSWORD: "" | 
|  |  | 
|  | --- | 
|  | apiVersion: v1 | 
|  | kind: Service | 
|  | metadata: | 
|  | namespace: sw-admin-framework | 
|  | name: sw-backend-admin-bff-svc | 
|  | labels: | 
|  | app: sw-backend-admin-bff | 
|  | needMonitor: 'true' | 
|  | spec: | 
|  | ports: | 
|  | - port: 8080 | 
|  | targetPort: http | 
|  | protocol: TCP | 
|  | name: http | 
|  | - port: 6060 | 
|  | targetPort: http-metrics | 
|  | protocol: TCP | 
|  | name: http-metrics | 
|  | selector: | 
|  | app: sw-backend-admin-bff | 
|  | --- | 
|  | apiVersion: apps/v1 | 
|  | kind: Deployment | 
|  | metadata: | 
|  | namespace: sw-admin-framework | 
|  | name: sw-backend-admin-bff | 
|  | spec: | 
|  | selector: | 
|  | matchLabels: | 
|  | app: sw-backend-admin-bff | 
|  | replicas: 1 | 
|  | template: | 
|  | metadata: | 
|  | labels: | 
|  | app: sw-backend-admin-bff | 
|  | spec: | 
|  | containers: | 
|  | - name: sw-backend-admin-bff | 
|  | image: harbor.supwisdom.com/sw-admin-framework/sw-backend-admin-bff:0.0.1-SNAPSHOT | 
|  | imagePullPolicy: Always | 
|  | ports: | 
|  | - containerPort: 8080 | 
|  | name: http | 
|  | - containerPort: 6060 | 
|  | name: http-metrics | 
|  | envFrom: | 
|  | - configMapRef: | 
|  | name: jvm-env | 
|  | - secretRef: | 
|  | name: sw-backend-admin-bff-env-secret | 
|  | - configMapRef: | 
|  | name: sw-backend-admin-bff-env | 
|  | resources: | 
|  | requests: | 
|  | memory: "400Mi" | 
|  | limits: | 
|  | memory: "400Mi" | 
|  | readinessProbe: | 
|  | httpGet: | 
|  | path: /actuator/health | 
|  | port: 8080 | 
|  | initialDelaySeconds: 20 | 
|  | periodSeconds: 5 | 
|  | timeoutSeconds: 5 | 
|  | successThreshold: 1 | 
|  | failureThreshold: 10 | 
|  | imagePullSecrets: | 
|  | - name: harbor-supwisdom |