ifdef::env-github[]
:tip-caption: :bulb:
:note-caption: :information_source:
:important-caption: :heavy_exclamation_mark:
:caution-caption: :fire:
:warning-caption: :warning:
endif::[]
ifndef::env-github[]
endif::[]

[[examples-tanzu-external-kafka]]
== Tanzu External Kafka
In this example you use _Tanzu CLI_ and external postgres database.

Deploy postgres operator using https://postgres-operator.readthedocs.io[Zalando Postgres Operator]

Deploy postgres instance.

[source, bash]
----
kubectl create -f examples/tanzu-external-postgres/postgres-dataflow.yml
----

Setup _Dataflow_ package repo:

[source, bash]
----
tanzu package repository add scdf-oss-repo --url springcloud/scdf-oss-repo:2.11.0-SNAPSHOT

tanzu package repository list
  NAME        REPOSITORY                            STATUS               DETAILS
  scdf-oss-repo   springcloud/scdf-oss-repo:2.11.0-SNAPSHOT Reconcile succeeded

tanzu package available list
  NAME                   DISPLAY-NAME  SHORT-DESCRIPTION
  scdf.tanzu.vmware.com  scdf          Spring Cloud Data Flow

tanzu package available list scdf.tanzu.vmware.com
  NAME                   VERSION         RELEASED-AT
  scdf.tanzu.vmware.com  2.11.0-SNAPSHOT
----

Get password for database and update values yml and install:

[source, bash]
----
tanzu package install scdf-demo \
  --package-name scdf.tanzu.vmware.com \
  --version 2.11.0-SNAPSHOT \
  --values-file examples/tanzu-external-postgres/minikube-values.yml
----
