Closed marccarre closed 5 years ago
FWIW, after this PR and a few fixes (#10, #11, #13), installing Flux and using this repository to configure an eksctl
cluster works fine.
ClusterConfig
manifest$ git diff
diff --git a/examples/01-simple-cluster.yaml b/examples/01-simple-cluster.yaml
index 18389273..115ecbea 100644
--- a/examples/01-simple-cluster.yaml
+++ b/examples/01-simple-cluster.yaml
@@ -4,13 +4,18 @@ apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
- name: cluster-1
- region: eu-north-1
+ name: gitops
+ region: ap-northeast-1
nodeGroups:
- name: ng-1
instanceType: m5.large
- desiredCapacity: 1
+ minSize: 1
+ maxSize: 2
+ iam:
+ withAddonPolicies:
+ autoScaler: true
+ cloudWatch: true
cloudWatch:
clusterLogging:
ClusterConfig
)$ time ./eksctl create cluster --verbose 4 -f examples/01-simple-cluster.yaml
[...]
2019-08-24T17:58:07+09:00 [ℹ] using Kubernetes version 1.13]
2019-08-24T17:58:07+09:00 [ℹ] creating EKS cluster "gitops" in "ap-northeast-1" region
[...]
2019-08-24T18:14:51+09:00 [▶] waiting for CloudFormation stack "eksctl-gitops-cluster" to reach "CREATE_COMPLETE" status
2019-08-24T18:14:51+09:00 [▶] done after 15m5.364445501s of waiting for CloudFormation stack "eksctl-gitops-cluster" to reach "CREATE_COMPLETE" status
[...]
2019-08-24T18:18:37+09:00 [▶] waiting for CloudFormation stack "eksctl-gitops-nodegroup-ng-1" to reach "CREATE_COMPLETE" status
2019-08-24T18:18:37+09:00 [▶] done after 3m45.682580071s of waiting for CloudFormation stack "eksctl-gitops-nodegroup-ng-1" to reach "CREATE_COMPLETE" status
[...]
2019-08-24T18:18:58+09:00 [▶] waiting for requested "LoggingUpdate" in cluster "gitops" to succeed to reach "Successful" status
2019-08-24T18:18:58+09:00 [▶] done after 19.063323179s of waiting for requested "LoggingUpdate" in cluster "gitops" to succeed to reach "Successful" status
[...]
2019-08-24T18:19:25+09:00 [✔] EKS cluster "gitops" in "ap-northeast-1" region is ready
[...]
real 21m20.350s
user 0m0.776s
sys 0m2.268s
$ EKSCTL_EXPERIMENTAL=true AWS_PROFILE=default-mfa ./eksctl \
> -f examples/01-simple-cluster.yaml \
> install flux \
> --git-url=git@github.com:marccarre/my-gitops-repo.git \
> --git-email=carre.marc@gmail.com
[ℹ] Generating public key infrastructure for the Helm Operator and Tiller
[ℹ] this may take up to a minute, please be patient
[!] Public key infrastructure files were written into directory "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/eksctl-helm-pki018689622"
[!] please move the files into a safe place or delete them
[ℹ] Generating manifests
[ℹ] Cloning git@github.com:marccarre/my-gitops-repo.git
Cloning into '/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/eksctl-install-flux-clone-908838845'...
remote: Enumerating objects: 97, done.
remote: Counting objects: 100% (97/97), done.
remote: Compressing objects: 100% (75/75), done.
remote: Total 97 (delta 24), reused 89 (delta 18), pack-reused 0
Receiving objects: 100% (97/97), 35.41 KiB | 250.00 KiB/s, done.
Resolving deltas: 100% (24/24), done.
[ℹ] Writing Flux manifests
[ℹ] Applying manifests
[ℹ] created "Namespace/flux"
[ℹ] created "flux:Deployment.apps/memcached"
[ℹ] created "CustomResourceDefinition.apiextensions.k8s.io/helmreleases.helm.fluxcd.io"
[ℹ] created "flux:Deployment.extensions/tiller-deploy"
[ℹ] created "flux:Service/tiller-deploy"
[ℹ] created "flux:ServiceAccount/flux-helm-operator"
[ℹ] created "ClusterRole.rbac.authorization.k8s.io/flux-helm-operator"
[ℹ] created "ClusterRoleBinding.rbac.authorization.k8s.io/flux-helm-operator"
[ℹ] created "flux:Secret/flux-git-deploy"
[ℹ] created "flux:ServiceAccount/flux"
[ℹ] created "ClusterRole.rbac.authorization.k8s.io/flux"
[ℹ] created "ClusterRoleBinding.rbac.authorization.k8s.io/flux"
[ℹ] created "flux:Deployment.apps/flux"
[ℹ] created "flux:ConfigMap/flux-helm-tls-ca-config"
[ℹ] created "flux:Service/memcached"
[ℹ] created "flux:ServiceAccount/tiller"
[ℹ] created "ClusterRoleBinding.rbac.authorization.k8s.io/tiller"
[ℹ] created "flux:ServiceAccount/helm"
[ℹ] created "flux:Role.rbac.authorization.k8s.io/tiller-user"
[ℹ] created "kube-system:RoleBinding.rbac.authorization.k8s.io/tiller-user-binding"
[ℹ] created "flux:Deployment.apps/flux-helm-operator"
[ℹ] Applying Helm TLS Secret(s)
[ℹ] created "flux:Secret/flux-helm-tls-cert"
[ℹ] created "flux:Secret/tiller-secret"
[!] Note: certificate secrets aren't added to the Git repository for security reasons
[ℹ] Waiting for Helm Operator to start
ERROR: logging before flag.Parse: E0824 18:37:35.947012 70673 portforward.go:331] an error occurred forwarding 49455 -> 3030: error forwarding port 3030 to pod 9692d55baf2fa64de4cb8f5671c5cea77011d8f4bd9fcff0dbfa2c3dc21849c1, uid : exit status 1: 2019/08/24 09:37:35 socat[8243] E connect(5, AF=2 127.0.0.1:3030, 16): Connection refused
[...]
[!] Helm Operator is not ready yet (Get http://127.0.0.1:49455/healthz: EOF), retrying ...
ERROR: logging before flag.Parse: E0824 18:37:58.240320 70673 portforward.go:331] an error occurred forwarding 49455 -> 3030: error forwarding port 3030 to pod 9692d55baf2fa64de4cb8f5671c5cea77011d8f4bd9fcff0dbfa2c3dc21849c1, uid : exit status 1: 2019/08/24 09:37:58 socat[8384] E connect(5, AF=2 127.0.0.1:3030, 16): Connection refused
[!] Helm Operator is not ready yet (Get http://127.0.0.1:49455/healthz: EOF), retrying ...
[ℹ] Helm Operator started successfully
[ℹ] see https://docs.fluxcd.io/projects/helm-operator for details on how to use the Helm Operator
[ℹ] Waiting for Flux to start
[ℹ] Flux started successfully
[ℹ] see https://docs.fluxcd.io/projects/flux for details on how to use Flux
[ℹ] Committing and pushing manifests to git@github.com:marccarre/my-gitops-repo.git
[master bb49796] Add Initial Flux configuration
13 files changed, 729 insertions(+)
create mode 100644 flux/flux-account.yaml
create mode 100644 flux/flux-deployment.yaml
create mode 100644 flux/flux-helm-operator-account.yaml
create mode 100644 flux/flux-helm-release-crd.yaml
create mode 100644 flux/flux-namespace.yaml
create mode 100644 flux/flux-secret.yaml
create mode 100644 flux/helm-operator-deployment.yaml
create mode 100644 flux/memcache-dep.yaml
create mode 100644 flux/memcache-svc.yaml
create mode 100644 flux/tiller-ca-cert-configmap.yaml
create mode 100644 flux/tiller-dep.yaml
create mode 100644 flux/tiller-rbac.yaml
create mode 100644 flux/tiller-svc.yaml
Enumerating objects: 17, done.
Counting objects: 100% (17/17), done.
Delta compression using up to 8 threads
Compressing objects: 100% (15/15), done.
Writing objects: 100% (16/16), 8.64 KiB | 8.64 MiB/s, done.
Total 16 (delta 1), reused 12 (delta 1)
remote: Resolving deltas: 100% (1/1), done.
To github.com:marccarre/my-gitops-repo.git
125c626..bb49796 master -> master
[ℹ] Flux will only operate properly once it has write-access to the Git repository
[ℹ] please configure git@github.com:marccarre/my-gitops-repo.git so that the following Flux SSH public key has write access to it
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSjSAfqnOP5p2tIpP1fGFire404kwEkDrfp94vSOpnsLWXL2Gmo4682cWrUUX6ZutYmARK2+36uJ5XuO9IzUxWJ71zFCwawIMQQwqcKHJSMhDTho1G+Lys5NfHOiwSixfvz4Tt3V6wOlEgvh1DrHuH5BxB4MPYLqL8D0YT4wO3L+UEUVTuf9iCpJ8Aqw6/NNE1dUAaXeSUS+HgXGevmFKhvY6SoEXuQk4uhfTQnn6z2mI1lYNHcTOXuIP7arKjJiRxnMYsYjvxQP8bUoHCMaL6MButPFLL0rxoJ5HmmPYkMCDqhnHWBnVEwall4l2lHpZdbmhfQs0Ph6qY3UfXB8Ex
$ kubectl get po --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
flux flux-6465c6cdb8-dpnds 1/1 Running 0 5m6s
flux flux-helm-operator-6bc7c85bb5-ptq25 1/1 Running 0 5m6s
flux memcached-958f745c-j4r5j 1/1 Running 0 5m6s
flux tiller-deploy-7ccc4b4d45-p5z2q 1/1 Running 0 5m5s
kube-system aws-node-kflw4 1/1 Running 0 23m
kube-system coredns-5485455cb4-2jbsq 1/1 Running 0 34m
kube-system coredns-5485455cb4-tvfbx 1/1 Running 0 34m
kube-system kube-proxy-4gwrz 1/1 Running 0 23m
Then the SSH key was added with write access to the GitHub repository.
The "quickstart" manifests were added to the local repository:
$ EKSCTL_EXPERIMENTAL=true ./eksctl \
> -f examples/01-simple-cluster.yaml \
> generate profile --verbose 4 \
> --git-url=git@github.com:weaveworks/eks-gitops-example.git \
> --profile-path "${GOPATH}/src/github.com/marccarre/my-gitops-repo"
2019-08-24T18:42:51+09:00 [ℹ] cloning repository "git@github.com:weaveworks/eks-gitops-example.git":master
2019-08-24T18:42:51+09:00 [▶] running git [clone -b master git@github.com:weaveworks/eks-gitops-example.git /var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994] in /var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994
Cloning into '/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994'...
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 151 (delta 0), reused 0 (delta 0), pack-reused 150
Receiving objects: 100% (151/151), 36.87 KiB | 231.00 KiB/s, done.
Resolving deltas: 100% (66/66), done.
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/LICENSE"
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/README.md"
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/amazon-cloudwatch/cloudwatch-agent-configmap.yaml.tmpl"
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/amazon-cloudwatch/cloudwatch-agent-daemonset.yaml"
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/amazon-cloudwatch/cloudwatch-agent-rbac.yaml"
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/amazon-cloudwatch/fluentd-configmap-cluster-info.yaml.tmpl"
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/amazon-cloudwatch/fluentd-configmap-fluentd-config.yaml"
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/amazon-cloudwatch/fluentd-daemonset.yaml"
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/amazon-cloudwatch/fluentd-rbac.yaml"
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/demo/helm-release.yaml"
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/kube-system/alb-ingress-controller-deployment.yaml.tmpl"
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/kube-system/alb-ingress-controller-rbac.yaml"
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/kube-system/cluster-autoscaler-deployment.yaml.tmpl"
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/kube-system/cluster-autoscaler-rbac.yaml"
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/kubernetes-dashboard/dashboard-metrics-scraper-deployment.yaml"
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/kubernetes-dashboard/dashboard-metrics-scraper-service.yaml"
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/kubernetes-dashboard/kubernetes-dashboard-configmap.yaml"
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/kubernetes-dashboard/kubernetes-dashboard-deployment.yaml"
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/kubernetes-dashboard/kubernetes-dashboard-rbac.yaml"
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/kubernetes-dashboard/kubernetes-dashboard-secrets.yaml"
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/kubernetes-dashboard/kubernetes-dashboard-service.yaml"
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/monitoring/metrics-server.yaml"
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/monitoring/prometheus-operator.yaml"
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/namespaces/amazon-cloudwatch.yaml"
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/namespaces/demo.yaml"
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/namespaces/kubernetes-dashboard.yaml"
2019-08-24T18:42:53+09:00 [▶] found file "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/namespaces/monitoring.yaml"
2019-08-24T18:42:53+09:00 [ℹ] processing template files in repository
2019-08-24T18:42:53+09:00 [▶] leaving non-template file unmodified "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/LICENSE"
2019-08-24T18:42:53+09:00 [▶] leaving non-template file unmodified "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/README.md"
2019-08-24T18:42:53+09:00 [▶] leaving non-template file unmodified "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/amazon-cloudwatch/cloudwatch-agent-daemonset.yaml"
2019-08-24T18:42:53+09:00 [▶] leaving non-template file unmodified "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/amazon-cloudwatch/cloudwatch-agent-rbac.yaml"
2019-08-24T18:42:53+09:00 [▶] leaving non-template file unmodified "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/amazon-cloudwatch/fluentd-configmap-fluentd-config.yaml"
2019-08-24T18:42:53+09:00 [▶] leaving non-template file unmodified "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/amazon-cloudwatch/fluentd-daemonset.yaml"
2019-08-24T18:42:53+09:00 [▶] leaving non-template file unmodified "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/amazon-cloudwatch/fluentd-rbac.yaml"
2019-08-24T18:42:53+09:00 [▶] leaving non-template file unmodified "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/demo/helm-release.yaml"
2019-08-24T18:42:53+09:00 [▶] leaving non-template file unmodified "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/kube-system/alb-ingress-controller-rbac.yaml"
2019-08-24T18:42:53+09:00 [▶] leaving non-template file unmodified "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/kube-system/cluster-autoscaler-rbac.yaml"
2019-08-24T18:42:53+09:00 [▶] leaving non-template file unmodified "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/kubernetes-dashboard/dashboard-metrics-scraper-deployment.yaml"
2019-08-24T18:42:53+09:00 [▶] leaving non-template file unmodified "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/kubernetes-dashboard/dashboard-metrics-scraper-service.yaml"
2019-08-24T18:42:53+09:00 [▶] leaving non-template file unmodified "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/kubernetes-dashboard/kubernetes-dashboard-configmap.yaml"
2019-08-24T18:42:53+09:00 [▶] leaving non-template file unmodified "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/kubernetes-dashboard/kubernetes-dashboard-deployment.yaml"
2019-08-24T18:42:53+09:00 [▶] leaving non-template file unmodified "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/kubernetes-dashboard/kubernetes-dashboard-rbac.yaml"
2019-08-24T18:42:53+09:00 [▶] leaving non-template file unmodified "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/kubernetes-dashboard/kubernetes-dashboard-secrets.yaml"
2019-08-24T18:42:53+09:00 [▶] leaving non-template file unmodified "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/kubernetes-dashboard/kubernetes-dashboard-service.yaml"
2019-08-24T18:42:53+09:00 [▶] leaving non-template file unmodified "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/monitoring/metrics-server.yaml"
2019-08-24T18:42:53+09:00 [▶] leaving non-template file unmodified "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/monitoring/prometheus-operator.yaml"
2019-08-24T18:42:53+09:00 [▶] leaving non-template file unmodified "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/namespaces/amazon-cloudwatch.yaml"
2019-08-24T18:42:53+09:00 [▶] leaving non-template file unmodified "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/namespaces/demo.yaml"
2019-08-24T18:42:53+09:00 [▶] leaving non-template file unmodified "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/namespaces/kubernetes-dashboard.yaml"
2019-08-24T18:42:53+09:00 [▶] leaving non-template file unmodified "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994/namespaces/monitoring.yaml"
2019-08-24T18:42:53+09:00 [ℹ] writing new manifests to "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/LICENSE"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/README.md"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/amazon-cloudwatch/cloudwatch-agent-configmap.yaml"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/amazon-cloudwatch/cloudwatch-agent-daemonset.yaml"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/amazon-cloudwatch/cloudwatch-agent-rbac.yaml"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/amazon-cloudwatch/fluentd-configmap-cluster-info.yaml"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/amazon-cloudwatch/fluentd-configmap-fluentd-config.yaml"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/amazon-cloudwatch/fluentd-daemonset.yaml"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/amazon-cloudwatch/fluentd-rbac.yaml"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/demo/helm-release.yaml"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/kube-system/alb-ingress-controller-deployment.yaml"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/kube-system/alb-ingress-controller-rbac.yaml"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/kube-system/cluster-autoscaler-deployment.yaml"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/kube-system/cluster-autoscaler-rbac.yaml"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/kubernetes-dashboard/dashboard-metrics-scraper-deployment.yaml"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/kubernetes-dashboard/dashboard-metrics-scraper-service.yaml"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/kubernetes-dashboard/kubernetes-dashboard-configmap.yaml"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/kubernetes-dashboard/kubernetes-dashboard-deployment.yaml"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/kubernetes-dashboard/kubernetes-dashboard-rbac.yaml"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/kubernetes-dashboard/kubernetes-dashboard-secrets.yaml"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/kubernetes-dashboard/kubernetes-dashboard-service.yaml"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/monitoring/metrics-server.yaml"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/monitoring/prometheus-operator.yaml"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/namespaces/amazon-cloudwatch.yaml"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/namespaces/demo.yaml"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/namespaces/kubernetes-dashboard.yaml"
2019-08-24T18:42:53+09:00 [▶] writing file "/Users/marc/dev/src/github.com/marccarre/my-gitops-repo/namespaces/monitoring.yaml"
2019-08-24T18:42:53+09:00 [▶] deleting cloned directory "/var/folders/24/d3mml6bn20nftpt91cfldq1h0000gn/T/quickstart-341396994"
Manifests were indeed generated:
$ git status
On branch master
Your branch is up to date with 'origin/master'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
LICENSE
amazon-cloudwatch/
demo/
kube-system/
kubernetes-dashboard/
monitoring/
namespaces/
nothing added to commit but untracked files present (use "git add" to track)
$ git add *
$ git status
On branch master
Your branch is up to date with 'origin/master'.
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
new file: LICENSE
new file: amazon-cloudwatch/cloudwatch-agent-configmap.yaml
new file: amazon-cloudwatch/cloudwatch-agent-daemonset.yaml
new file: amazon-cloudwatch/cloudwatch-agent-rbac.yaml
new file: amazon-cloudwatch/fluentd-configmap-cluster-info.yaml
new file: amazon-cloudwatch/fluentd-configmap-fluentd-config.yaml
new file: amazon-cloudwatch/fluentd-daemonset.yaml
new file: amazon-cloudwatch/fluentd-rbac.yaml
new file: demo/helm-release.yaml
new file: kube-system/alb-ingress-controller-deployment.yaml
new file: kube-system/alb-ingress-controller-rbac.yaml
new file: kube-system/cluster-autoscaler-deployment.yaml
new file: kube-system/cluster-autoscaler-rbac.yaml
new file: kubernetes-dashboard/dashboard-metrics-scraper-deployment.yaml
new file: kubernetes-dashboard/dashboard-metrics-scraper-service.yaml
new file: kubernetes-dashboard/kubernetes-dashboard-configmap.yaml
new file: kubernetes-dashboard/kubernetes-dashboard-deployment.yaml
new file: kubernetes-dashboard/kubernetes-dashboard-rbac.yaml
new file: kubernetes-dashboard/kubernetes-dashboard-secrets.yaml
new file: kubernetes-dashboard/kubernetes-dashboard-service.yaml
new file: monitoring/metrics-server.yaml
new file: monitoring/prometheus-operator.yaml
new file: namespaces/amazon-cloudwatch.yaml
new file: namespaces/demo.yaml
new file: namespaces/kubernetes-dashboard.yaml
new file: namespaces/monitoring.yaml
... and pushed to origin/master
:
$ git commit -S -m "Add eksctl GitOps quickstart manifests"
[master 8c0ccd9] Add eksctl GitOps quickstart manifests
26 files changed, 1229 insertions(+)
create mode 100644 LICENSE
create mode 100644 amazon-cloudwatch/cloudwatch-agent-configmap.yaml
create mode 100644 amazon-cloudwatch/cloudwatch-agent-daemonset.yaml
create mode 100644 amazon-cloudwatch/cloudwatch-agent-rbac.yaml
create mode 100644 amazon-cloudwatch/fluentd-configmap-cluster-info.yaml
create mode 100644 amazon-cloudwatch/fluentd-configmap-fluentd-config.yaml
create mode 100644 amazon-cloudwatch/fluentd-daemonset.yaml
create mode 100644 amazon-cloudwatch/fluentd-rbac.yaml
create mode 100644 demo/helm-release.yaml
create mode 100644 kube-system/alb-ingress-controller-deployment.yaml
create mode 100644 kube-system/alb-ingress-controller-rbac.yaml
create mode 100644 kube-system/cluster-autoscaler-deployment.yaml
create mode 100644 kube-system/cluster-autoscaler-rbac.yaml
create mode 100644 kubernetes-dashboard/dashboard-metrics-scraper-deployment.yaml
create mode 100644 kubernetes-dashboard/dashboard-metrics-scraper-service.yaml
create mode 100644 kubernetes-dashboard/kubernetes-dashboard-configmap.yaml
create mode 100644 kubernetes-dashboard/kubernetes-dashboard-deployment.yaml
create mode 100644 kubernetes-dashboard/kubernetes-dashboard-rbac.yaml
create mode 100644 kubernetes-dashboard/kubernetes-dashboard-secrets.yaml
create mode 100644 kubernetes-dashboard/kubernetes-dashboard-service.yaml
create mode 100644 monitoring/metrics-server.yaml
create mode 100644 monitoring/prometheus-operator.yaml
create mode 100644 namespaces/amazon-cloudwatch.yaml
create mode 100644 namespaces/demo.yaml
create mode 100644 namespaces/kubernetes-dashboard.yaml
create mode 100644 namespaces/monitoring.yaml
$ git push origin master
Enumerating objects: 35, done.
Counting objects: 100% (35/35), done.
Delta compression using up to 8 threads
Compressing objects: 100% (33/33), done.
Writing objects: 100% (34/34), 11.34 KiB | 3.78 MiB/s, done.
Total 34 (delta 8), reused 0 (delta 0)
remote: Resolving deltas: 100% (8/8), done.
To github.com:marccarre/my-gitops-repo.git
bb49796..8c0ccd9 master -> master
After a few minutes, Flux picked up the above manifests and deployed everything:
$ kubectl get po --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
amazon-cloudwatch cloudwatch-agent-b5x8m 1/1 Running 0 9m1s
amazon-cloudwatch fluentd-cloudwatch-cbkzz 1/1 Running 0 9m1s
demo podinfo-75b8547f78-ch5vj 1/1 Running 0 5m39s
flux flux-6465c6cdb8-dpnds 1/1 Running 0 18m
flux flux-helm-operator-6bc7c85bb5-ptq25 1/1 Running 0 18m
flux memcached-958f745c-j4r5j 1/1 Running 0 18m
flux tiller-deploy-7ccc4b4d45-p5z2q 1/1 Running 0 18m
kube-system alb-ingress-controller-66657ff4ff-j8qt5 1/1 Running 0 9m1s
kube-system aws-node-kflw4 1/1 Running 0 36m
kube-system cluster-autoscaler-cbf8c67ff-xvnwb 1/1 Running 0 9m1s
kube-system coredns-5485455cb4-2jbsq 1/1 Running 0 47m
kube-system coredns-5485455cb4-tvfbx 1/1 Running 0 47m
kube-system kube-proxy-4gwrz 1/1 Running 0 36m
kubernetes-dashboard dashboard-metrics-scraper-f7b5dbf7d-vs7gf 1/1 Running 0 9m1s
kubernetes-dashboard kubernetes-dashboard-7447f48f55-l5vlp 1/1 Running 0 9m1s
monitoring alertmanager-prometheus-operator-alertmanager-0 2/2 Running 0 5m10s
monitoring metrics-server-7dfc675884-zgcjw 1/1 Running 0 8m52s
monitoring prometheus-operator-grafana-9bb769cf-wprz8 2/2 Running 0 5m26s
monitoring prometheus-operator-kube-state-metrics-79f476bff6-rsft4 1/1 Running 0 5m26s
monitoring prometheus-operator-operator-58fcb66576-mvlkc 1/1 Running 0 5m26s
monitoring prometheus-operator-prometheus-node-exporter-gv4bt 1/1 Running 0 5m26s
monitoring prometheus-prometheus-operator-prometheus-0 3/3 Running 1 5m3s
"Refactoring" of this repository's manifests. No functional change.
Before
After
Fixes weaveworks/aws-workstream/issues/73.