Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit b7ca836

Browse files
committed
Update carvel docs
1 parent cec837b commit b7ca836

File tree

5 files changed

+90
-2
lines changed

5 files changed

+90
-2
lines changed

src/carvel/docs/examples/kapp-controller-install/README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ Deploy controller:
1919
kapp deploy \
2020
-a kc \
2121
-y \
22-
-f https://github.com/vmware-tanzu/carvel-kapp-controller/releases/download/v0.28.0/release.yml
22+
-f https://github.com/vmware-tanzu/carvel-kapp-controller/releases/latest/download/release.yml
2323
----

src/carvel/docs/examples/secretgen-controller-install/README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Deploy controller:
1919
kapp deploy \
2020
-a sg \
2121
-y \
22-
-f https://github.com/vmware-tanzu/carvel-secretgen-controller/releases/download/v0.5.0/release.yml
22+
-f https://github.com/vmware-tanzu/carvel-secretgen-controller/releases/latest/download/release.yml
2323
----
2424

2525
Deploy secrets:
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
ifdef::env-github[]
2+
:tip-caption: :bulb:
3+
:note-caption: :information_source:
4+
:important-caption: :heavy_exclamation_mark:
5+
:caution-caption: :fire:
6+
:warning-caption: :warning:
7+
endif::[]
8+
ifndef::env-github[]
9+
endif::[]
10+
11+
[[examples-tanzu-external-kafka]]
12+
== Tanzu External Kafka
13+
In this example you use _Tanzu CLI_ and external postgres database.
14+
15+
Deploy postgres operator using https://postgres-operator.readthedocs.io[Zalando Postgres Operator]
16+
17+
Deploy postgres instance.
18+
19+
[source, bash]
20+
----
21+
kubectl create -f examples/tanzu-external-postgres/postgres-dataflow.yml
22+
----
23+
24+
Setup _Dataflow_ package repo:
25+
26+
[source, bash]
27+
----
28+
tanzu package repository add scdf-repo --url springcloud/scdf-repo:2.10.0-SNAPSHOT
29+
30+
tanzu package repository list
31+
NAME REPOSITORY STATUS DETAILS
32+
scdf-repo springcloud/scdf-repo:2.10.0-SNAPSHOT Reconcile succeeded
33+
34+
tanzu package available list
35+
NAME DISPLAY-NAME SHORT-DESCRIPTION
36+
scdf.tanzu.vmware.com scdf Spring Cloud Data Flow
37+
38+
tanzu package available list scdf.tanzu.vmware.com
39+
NAME VERSION RELEASED-AT
40+
scdf.tanzu.vmware.com 2.10.0-SNAPSHOT
41+
----
42+
43+
Get password for database and update values yml and install:
44+
45+
[source, bash]
46+
----
47+
tanzu package install scdf-demo \
48+
--package-name scdf.tanzu.vmware.com \
49+
--version 2.10.0-SNAPSHOT \
50+
--values-file examples/tanzu-external-postgres/minikube-values.yml
51+
----
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
scdf:
2+
deploy:
3+
database:
4+
enabled: false
5+
server:
6+
service:
7+
type:
8+
NodePort
9+
database:
10+
url: jdbc:postgresql://${POSTGRES-DATAFLOW_SERVICE_HOST}:${POSTGRES-DATAFLOW_SERVICE_PORT}/scdf
11+
username: scdf
12+
password: <pw created by controller>
13+
driverClassName: org.postgresql.Driver
14+
skipper:
15+
database:
16+
url: jdbc:postgresql://${POSTGRES-DATAFLOW_SERVICE_HOST}:${POSTGRES-DATAFLOW_SERVICE_PORT}/scdf
17+
username: scdf
18+
password: <pw created by controller>
19+
driverClassName: org.postgresql.Driver
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: "acid.zalan.do/v1"
2+
kind: postgresql
3+
metadata:
4+
name: postgres-dataflow
5+
namespace: default
6+
spec:
7+
teamId: "postgres"
8+
volume:
9+
size: 1Gi
10+
numberOfInstances: 1
11+
users:
12+
scdf:
13+
- superuser
14+
- createdb
15+
databases:
16+
scdf: scdf
17+
postgresql:
18+
version: "14"

0 commit comments

Comments
 (0)