apiVersion: apps/v1 kind: Deployment metadata: name: catalog spec: replicas: 1 selector: matchLabels: service: catalog template: metadata: labels: service: catalog spec: containers: - name: catalog image: barretthousen/service-catalog ports: - containerPort: 5001 name: grpc command: - /opt/catalog args: - -migrate resources: limits: cpu: "250m" memory: "128Mi" volumeMounts: - mountPath: /config/ name: catalog-config volumes: - name: catalog-config configMap: name: catalog-config --- apiVersion: v1 kind: Service metadata: name: catalog spec: selector: service: catalog ports: - port: 5001 targetPort: 5001 --- apiVersion: v1 kind: ConfigMap metadata: name: catalog-config data: config.yaml: | log_level: 2 port: 5001 db_service: scheme: postgres port: 5432 host: bh-db name: bh user: catalog-service password: catalog-service db_migrate: scheme: postgres port: 5432 host: bh-db name: bh user: postgres password: bh-admin