diff --git a/config/samples/kamaji_v1alpha1_datastore_etcd.yaml b/config/samples/kamaji_v1alpha1_datastore_etcd.yaml new file mode 100644 index 0000000..ae5e2d1 --- /dev/null +++ b/config/samples/kamaji_v1alpha1_datastore_etcd.yaml @@ -0,0 +1,34 @@ +apiVersion: kamaji.clastix.io/v1alpha1 +kind: DataStore +metadata: + name: etcd +spec: + driver: etcd + endpoints: + - etcd-0.etcd.kamaji-system.svc:2379 + - etcd-1.etcd.kamaji-system.svc:2379 + - etcd-2.etcd.kamaji-system.svc:2379 + basicAuth: null + tlsConfig: + certificateAuthority: + certificate: + secretReference: + name: etcd-certs + namespace: kamaji-system + keyPath: "ca.crt" + privateKey: + secretReference: + name: etcd-certs + namespace: kamaji-system + keyPath: "ca.key" + clientCertificate: + certificate: + secretReference: + name: root-client-certs + namespace: kamaji-system + keyPath: "tls.crt" + privateKey: + secretReference: + name: root-client-certs + namespace: kamaji-system + keyPath: "tls.key" diff --git a/config/samples/kamaji_v1alpha1_datastore_mysql.yaml b/config/samples/kamaji_v1alpha1_datastore_mysql.yaml new file mode 100644 index 0000000..1c16b36 --- /dev/null +++ b/config/samples/kamaji_v1alpha1_datastore_mysql.yaml @@ -0,0 +1,34 @@ +apiVersion: kamaji.clastix.io/v1alpha1 +kind: DataStore +metadata: + name: mysql +spec: + driver: MySQL + endpoints: + - mariadb.kamaji-system.svc:3306 + basicAuth: + username: + content: cm9vdA== + password: + secretReference: + name: mysql-config + namespace: kamaji-system + keyPath: MYSQL_ROOT_PASSWORD + tlsConfig: + certificateAuthority: + certificate: + secretReference: + name: mysql-config + namespace: kamaji-system + keyPath: "ca.crt" + clientCertificate: + certificate: + secretReference: + name: mysql-config + namespace: kamaji-system + keyPath: "server.crt" + privateKey: + secretReference: + name: mysql-config + namespace: kamaji-system + keyPath: "server.key" diff --git a/config/samples/kamaji_v1alpha1_datastore_postgresql.yaml b/config/samples/kamaji_v1alpha1_datastore_postgresql.yaml new file mode 100644 index 0000000..8153537 --- /dev/null +++ b/config/samples/kamaji_v1alpha1_datastore_postgresql.yaml @@ -0,0 +1,37 @@ +apiVersion: kamaji.clastix.io/v1alpha1 +kind: DataStore +metadata: + name: postgresql +spec: + driver: PostgreSQL + endpoints: + - postgresql-rw.kamaji-system.svc:5432 + basicAuth: + username: + secretReference: + name: postgresql-superuser + namespace: kamaji-system + keyPath: username + password: + secretReference: + name: postgresql-superuser + namespace: kamaji-system + keyPath: password + tlsConfig: + certificateAuthority: + certificate: + secretReference: + name: postgresql-ca + namespace: kamaji-system + keyPath: ca.crt + clientCertificate: + certificate: + secretReference: + name: postgres-root-cert + namespace: kamaji-system + keyPath: tls.crt + privateKey: + secretReference: + name: postgres-root-cert + namespace: kamaji-system + keyPath: tls.key