UNPKG

moleculer-api

Version:

A dynamic API Gateway for MoleculerJS which updates REST endpoints and aggregated GraphQL schema, access control policy for each action calls from metadata of remote services schema without restart or deployment.

68 lines (67 loc) 1.27 kB
apiVersion: apps/v1 kind: Deployment metadata: labels: app: api-gateway name: api-gateway namespace: util spec: replicas: 1 template: metadata: labels: app: api-gateway spec: containers: - image: gcr.io/qmit-pro/api-gateway:latest imagePullPolicy: Always name: server resources: {} env: - name: QMIT_APP_ENV value: dev - name: QMIT_CLUSTER_NAME value: dev selector: matchLabels: app: api-gateway --- apiVersion: v1 kind: Service metadata: labels: app: api-gateway name: api-gateway namespace: util spec: selector: app: api-gateway ports: - name: http protocol: TCP port: 80 targetPort: 8080 type: ClusterIP --- apiVersion: extensions/v1beta1 kind: Ingress metadata: annotations: cert-manager.io/cluster-issuer: letsencrypt-prod labels: app: api-gateway name: api-gateway namespace: util spec: rules: - host: api.dev.qmit.pro http: paths: - backend: serviceName: api-gateway servicePort: 80 path: / tls: - hosts: - api.dev.qmit.pro secretName: api-dev-qmit-pro-cert