sparse-intern-71089
09/25/2019, 6:35 PMhandsome-actor-1155
09/25/2019, 6:39 PMhelm install \
-f ./providers/aws.yaml \
--name zookeeper \
--namespace operator \
--set zookeeper.enabled=true \
./confluent-operator
Is this helm/operator setup different than others out there? Does Pulumi support the name
option in the helm install --name zookeeper
command?handsome-actor-1155
09/25/2019, 6:40 PMhandsome-actor-1155
09/25/2019, 6:41 PMconst kafkaOperator = new k8s.helm.v2.Chart("confluent-operator", {
path: "confluent-operator/helm/confluent-operator",
namespace: namespace.kafka,
values: awsConfluent.config
}, {dependsOn: [kafkaNamespace], providers: {kubernetes: k8sKafkaProvider}});
handsome-actor-1155
09/25/2019, 6:43 PMconfluent-operator
path is a folder containing all the files in the download from confluent’s site. awsConfuent.config
is a json’d version of values.yaml
so that I can just pass it an objecthandsome-actor-1155
09/25/2019, 6:44 PMEvents:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling 32s (x9 over 4m26s) default-scheduler pod has unbound immediate PersistentVolumeClaims (repeated 8 times)
creamy-potato-29402
09/25/2019, 7:48 PMcreamy-potato-29402
09/25/2019, 7:48 PMhandsome-actor-1155
09/25/2019, 7:49 PMcreamy-potato-29402
09/25/2019, 7:49 PMhandsome-actor-1155
09/25/2019, 7:49 PMhandsome-actor-1155
09/25/2019, 7:50 PMcreamy-potato-29402
09/25/2019, 7:50 PMhelm template
creamy-potato-29402
09/25/2019, 7:50 PMhelm template
creamy-potato-29402
09/25/2019, 7:51 PMhandsome-actor-1155
09/25/2019, 7:55 PM--name
options to create different deployments. Is that represented by the same chart
instance in pulumi? Or multiple instances of the same chart with different release names?creamy-potato-29402
09/25/2019, 7:56 PMcreamy-potato-29402
09/25/2019, 7:57 PMhandsome-actor-1155
09/25/2019, 8:00 PMhelm install \
-f ./providers/aws.yaml \
--name operator \
--namespace operator \
--set operator.enabled=true \
./confluent-operator
plus
helm install \
-f ./providers/aws.yaml \
--name zookeeper \
--namespace operator \
--set zookeeper.enabled=true \
./confluent-operator
equals
const kafkaOperator = new k8s.helm.v2.Chart("confluent-operator", {
path: "confluent-operator/helm/confluent-operator",
namespace: namespace.kafka,
values: awsConfluent.config
}, {dependsOn: [kafkaNamespace], providers: {kubernetes: k8sKafkaProvider}});
awsConfluent.config.zookeeper.enabled = true;
const kafkaZookeeper = new k8s.helm.v2.Chart("confluent-zookeeper", {
path: "confluent-operator/helm/confluent-operator",
namespace: namespace.kafka,
values: awsConfluent.config
}, {dependsOn: [kafkaNamespace], providers: {kubernetes: k8sKafkaProvider}});
?handsome-actor-1155
09/25/2019, 8:03 PMawsConfluent.config
is just a json representation of values.yaml
creamy-potato-29402
09/25/2019, 8:05 PMcreamy-potato-29402
09/25/2019, 8:05 PMhandsome-actor-1155
09/25/2019, 8:06 PMhandsome-actor-1155
09/25/2019, 8:13 PMawsConfluent.config.operator.enabled = true;
const kafkaOperator = new k8s.helm.v2.Chart("confluent-operator", {
path: "confluent-operator/helm/confluent-operator",
namespace: namespace.kafka,
values: awsConfluent.config
}, {dependsOn: [kafkaNamespace], providers: {kubernetes: k8sKafkaProvider}});
creamy-potato-29402
09/25/2019, 8:14 PMcreamy-potato-29402
09/25/2019, 8:14 PMhandsome-actor-1155
09/25/2019, 8:15 PMhandsome-actor-1155
09/25/2019, 8:15 PMawsConfluent.config.operator.enabled = true;
const kafkaOperator = new k8s.helm.v2.Chart("confluent-operator", {
path: "confluent-operator/helm/confluent-operator",
namespace: namespace.kafka,
values: awsConfluent.config
}, {dependsOn: [kafkaNamespace], providers: {kubernetes: k8sKafkaProvider}});
awsConfluent.config.zookeeper.enabled = true;
const kafkaZookeeper = new k8s.helm.v2.Chart("confluent-zookeeper", {
path: "confluent-operator/helm/confluent-operator",
namespace: namespace.kafka,
values: awsConfluent.config
}, {dependsOn: [kafkaNamespace], providers: {kubernetes: k8sKafkaProvider}});
creamy-potato-29402
09/25/2019, 8:15 PMcreamy-potato-29402
09/25/2019, 8:16 PMcreamy-potato-29402
09/25/2019, 8:16 PMhandsome-actor-1155
09/25/2019, 8:16 PMhandsome-actor-1155
09/25/2019, 8:17 PMawsConfluent.config.operator.enabled = true;
awsConfluent.config.zookeeper.enabled = true;
const kafkaOperator = new k8s.helm.v2.Chart("confluent-operator", {
path: "confluent-operator/helm/confluent-operator",
namespace: namespace.kafka,
values: awsConfluent.config
}, {dependsOn: [kafkaNamespace], providers: {kubernetes: k8sKafkaProvider}});
creamy-potato-29402
09/25/2019, 8:18 PMcreamy-potato-29402
09/25/2019, 8:18 PMcreamy-potato-29402
09/25/2019, 8:19 PMcreamy-potato-29402
09/25/2019, 8:19 PMhandsome-actor-1155
09/25/2019, 8:19 PMhandsome-actor-1155
09/25/2019, 8:19 PMcreamy-potato-29402
09/25/2019, 8:19 PMcreamy-potato-29402
09/25/2019, 8:20 PMcreamy-potato-29402
09/25/2019, 8:21 PMhandsome-actor-1155
09/25/2019, 8:22 PMcreamy-potato-29402
09/25/2019, 8:22 PMcreamy-potato-29402
09/25/2019, 8:22 PMcreamy-potato-29402
09/25/2019, 8:23 PMcreamy-potato-29402
09/25/2019, 8:23 PMhandsome-actor-1155
09/25/2019, 8:23 PMcreamy-potato-29402
09/25/2019, 8:23 PMhandsome-actor-1155
09/25/2019, 8:23 PMhandsome-actor-1155
09/25/2019, 8:24 PMcreamy-potato-29402
09/25/2019, 8:24 PMkubectl get pvc --all-namespaces
and kubectl get pv --all-namespaces
creamy-potato-29402
09/25/2019, 8:24 PMcreamy-potato-29402
09/25/2019, 8:25 PMcreamy-potato-29402
09/25/2019, 8:25 PMcreamy-potato-29402
09/25/2019, 8:25 PMhandsome-actor-1155
09/25/2019, 8:26 PMhandsome-actor-1155
09/25/2019, 8:26 PMcreamy-potato-29402
09/25/2019, 8:27 PMcreamy-potato-29402
09/25/2019, 8:27 PMhandsome-actor-1155
09/25/2019, 8:27 PMhandsome-actor-1155
09/25/2019, 8:27 PMcreamy-potato-29402
09/25/2019, 8:27 PMcreamy-potato-29402
09/25/2019, 8:28 PMcreamy-potato-29402
09/25/2019, 8:28 PMhandsome-actor-1155
09/25/2019, 8:29 PMcreamy-potato-29402
09/25/2019, 8:29 PMcreamy-potato-29402
09/25/2019, 8:30 PMhelm install
via these “providers” thoughhandsome-actor-1155
09/25/2019, 8:30 PMhandsome-actor-1155
09/25/2019, 8:30 PMcreamy-potato-29402
09/25/2019, 8:30 PMcreamy-potato-29402
09/25/2019, 8:30 PMhelm install -f
with a provider?creamy-potato-29402
09/25/2019, 8:30 PMhelm template
?creamy-potato-29402
09/25/2019, 8:31 PMinstall
for template
?handsome-actor-1155
09/25/2019, 8:31 PMcreamy-potato-29402
09/25/2019, 8:31 PMhandsome-actor-1155
09/25/2019, 8:31 PMhandsome-actor-1155
09/25/2019, 8:32 PMcreamy-potato-29402
09/25/2019, 8:32 PMtemplate
just expands the charthandsome-actor-1155
09/25/2019, 8:35 PMhelm template \
-f ./providers/aws.yaml \
--name operator \
--namespace operator \
--set operator.enabled=true \
./confluent-operator
creamy-potato-29402
09/25/2019, 8:35 PMcreamy-potato-29402
09/25/2019, 8:36 PMnew Chart
?creamy-potato-29402
09/25/2019, 8:36 PMhandsome-actor-1155
09/25/2019, 8:37 PMawsProvider.ts
handsome-actor-1155
09/25/2019, 8:38 PMvalues
option for the new Chart
creamy-potato-29402
09/25/2019, 8:38 PMnew k8s.helm.v2.Chart("confluent-operator", {
path: "providers/aws.yaml",
handsome-actor-1155
09/25/2019, 8:39 PMaws.yaml
provider filecreamy-potato-29402
09/25/2019, 8:40 PMcreamy-potato-29402
09/25/2019, 8:41 PMhandsome-actor-1155
09/25/2019, 8:43 PMkubectl describe zookeeper zookeeper -n operator
creamy-potato-29402
09/25/2019, 8:44 PMcreamy-potato-29402
09/25/2019, 8:44 PMcreamy-potato-29402
09/25/2019, 8:45 PMhandsome-actor-1155
09/25/2019, 8:45 PMcreamy-potato-29402
09/25/2019, 8:46 PMcreamy-potato-29402
09/25/2019, 8:46 PMhandsome-actor-1155
09/25/2019, 8:47 PMhandsome-actor-1155
09/25/2019, 8:47 PMcreamy-potato-29402
09/25/2019, 8:47 PMhandsome-actor-1155
09/25/2019, 8:47 PMcreamy-potato-29402
09/25/2019, 8:47 PMhandsome-actor-1155
09/25/2019, 10:25 PMhandsome-actor-1155
09/25/2019, 10:26 PMst1
as the storage type in my json but it was gp2
in the yaml file. Not sure why that would make a differencehandsome-actor-1155
09/25/2019, 10:27 PMcreamy-potato-29402
09/26/2019, 2:27 AMcreamy-potato-29402
09/26/2019, 2:27 AMhandsome-actor-1155
09/26/2019, 4:28 AMzookeeper.enabled=true
after the first run then running it again as there are no checks to make sure the previous dependency has completed before proceeding. Can I write Pulumi health checks to prevent zookeeper from proceeding before the operator has finished? Or is that something I need to write into the helm charts?handsome-actor-1155
10/15/2019, 12:04 AM-apikeys
was already created; however, if I create the individual components one by one I do not get the error.handsome-actor-1155
10/15/2019, 12:04 AM-apikeys
secret was indeed created but is empty. If I delete it and re run pulumi, it creates successfully with data.handsome-actor-1155
10/15/2019, 12:06 AMhandsome-actor-1155
10/15/2019, 12:07 AMapiVersion: v1
kind: Secret
metadata:
{{- include "confluent-operator.labels" . }}
namespace: {{ .Release.Namespace }}
name: {{ .Values.name }}-apikeys
type: Opaque
data:
apikeys.json : {{ include "confluent-operator.apikeys" . | b64enc }}
handsome-actor-1155
10/15/2019, 12:13 AM