-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from aidanmelen/confluent_platform_tls_only
autogenerated_tls_only
- Loading branch information
Showing
54 changed files
with
1,181 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
module "confluent_platform" { | ||
source = "aidanmelen/confluent-platform/kubernetes" | ||
version = ">= 0.9.0" | ||
|
||
namespace = var.namespace | ||
|
||
zookeeper = yamldecode(<<-EOF | ||
spec: | ||
tls: | ||
# For this component, Confluent for Kubernete will autogenerate and | ||
# configure server certs, using a certificate authority specified in | ||
# the secret `ca-pair-sslcerts`. | ||
# This same configuration is specified for all other components. | ||
autoGeneratedCerts: true | ||
EOF | ||
) | ||
|
||
kafka = yamldecode(<<-EOF | ||
spec: | ||
configOverrides: | ||
server: | ||
- "log.file.size=${100 * 1024 * 1024}" | ||
tls: | ||
autoGeneratedCerts: true | ||
listeners: | ||
internal: | ||
# The `internal` listener will be TLS enabled. | ||
tls: | ||
enabled: true | ||
# Since no secretRef is specified, the Kafka auto-generated tls | ||
# configuration specified above will be used for this listener. | ||
metricReporter: | ||
enabled: true | ||
bootstrapEndpoint: kafka:9071 | ||
tls: | ||
enabled: true | ||
dependencies: | ||
zookeeper: | ||
endpoint: zookeeper.${var.namespace}.svc.cluster.local:2182 | ||
tls: | ||
enabled: true | ||
EOF | ||
) | ||
|
||
connect = yamldecode(<<-EOF | ||
spec: | ||
tls: | ||
autoGeneratedCerts: true | ||
dependencies: | ||
kafka: | ||
bootstrapEndpoint: kafka:9071 | ||
tls: | ||
enabled: true | ||
EOF | ||
) | ||
|
||
ksqldb = yamldecode(<<-EOF | ||
spec: | ||
tls: | ||
autoGeneratedCerts: true | ||
dependencies: | ||
kafka: | ||
bootstrapEndpoint: kafka:9071 | ||
tls: | ||
enabled: true | ||
EOF | ||
) | ||
|
||
controlcenter = yamldecode(<<-EOF | ||
spec: | ||
tls: | ||
autoGeneratedCerts: true | ||
dependencies: | ||
kafka: | ||
bootstrapEndpoint: kafka.${var.namespace}.svc.cluster.local:9071 | ||
tls: | ||
enabled: true | ||
schemaRegistry: | ||
url: https://schemaregistry.${var.namespace}.svc.cluster.local:8081 | ||
tls: | ||
enabled: true | ||
ksqldb: | ||
- name: ksql | ||
url: https://ksqldb.${var.namespace}.svc.cluster.local:8088 | ||
tls: | ||
enabled: true | ||
connect: | ||
- name: connect-dev | ||
url: https://connect.${var.namespace}.svc.cluster.local:8083 | ||
tls: | ||
enabled: true | ||
EOF | ||
) | ||
|
||
schemaregistry = yamldecode(<<-EOF | ||
spec: | ||
tls: | ||
autoGeneratedCerts: true | ||
dependencies: | ||
kafka: | ||
bootstrapEndpoint: kafka:9071 | ||
tls: | ||
enabled: true | ||
EOF | ||
) | ||
|
||
kafkarestproxy = yamldecode(<<-EOF | ||
spec: | ||
tls: | ||
autoGeneratedCerts: true | ||
dependencies: | ||
schemaRegistry: | ||
url: https://schemaregistry.${var.namespace}.svc.cluster.local:8081 | ||
tls: | ||
enabled: true | ||
EOF | ||
) | ||
|
||
kafka_rest_classes = { | ||
"default" = {} | ||
} | ||
|
||
kafka_topics = { | ||
"my-topic" = {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
content: |- | ||
{{ .Header }} | ||
## Example | ||
```hcl | ||
{{ include ".main.tf.docs" }} | ||
``` | ||
{{ .Requirements }} | ||
{{ .Modules }} | ||
{{ .Inputs }} | ||
{{ .Outputs }} |
Oops, something went wrong.