How to write Config Connector to secrets or configmaps for use in Deployments?

9/9/2021

In Crossplane it is simple to write Connection details of an SQL Instance to a Kubernetes Secret:

apiVersion: database.gcp.crossplane.io/v1beta1
kind: CloudSQLInstance
metadata:
  name: test-db
    [OMITTED...]
spec:
  forProvider:
    [OMITTED...]
  writeConnectionSecretToRef:
    namespace: org
    name: test-db-secret

This writes Connection details to a Kubernetes Secret, so that they can be referenced by Deployments.

How to do this using Config Connector? Am I missing something?

-- user140547
crossplane
gcp-config-connector
google-kubernetes-engine
kubernetes

0 Answers