Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding ArgoCD example #191

Merged
merged 6 commits into from
Jan 18, 2022
Merged

Adding ArgoCD example #191

merged 6 commits into from
Jan 18, 2022

Conversation

kcoleman731
Copy link
Contributor

Issue #, if available:

Description of changes:

Adding an ArgoCD example.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@vara-bonthu vara-bonthu self-requested a review January 14, 2022 08:31
Copy link
Contributor

@vara-bonthu vara-bonthu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me with one minor question

examples/eks-cluster-with-argocd/main.tf Outdated Show resolved Hide resolved
@@ -0,0 +1,184 @@
terraform {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we create a gitops folder under examples and move this example file under that? This will allow us to add other Gitops examples as well here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think Argo is critical enough that it should be top level example

Copy link
Contributor

@vara-bonthu vara-bonthu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Few minor changes needs addressing.

Also, This block needs changing for YuniKorn locals. (tostring("general,spark-k8s-operator"))

  argocd_gitops_config = {
    enable                   = true
    serviceAccount           = local.service_account_name
    operatorPlugins          = tostring("general,spark-k8s-operator")
    serviceType              = local.service_type
    embedAdmissionController = false
  }

locals {
tenant = "aws001" # AWS account name or unique id for tenant
environment = "preprod" # Environment area eg., preprod or prod
zone = "dever" # Environment with in one sub_tenant or business unit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this zone meant to be dev ?


workload_application = {
path = "envs/dev"
repo_url = "git@github.com:aws-samples/ssp-eks-workloads.git"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change this to https url to avoid SSH issue. We can document how users can use SSH by passing the SSH key

Copy link
Contributor

@askulkarni2 askulkarni2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it!

@@ -79,6 +79,6 @@ variable "http_tokens" {

variable "http_put_response_hop_limit" {
type = number
default = 1
default = 2
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@askulkarni2 askulkarni2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kcoleman731 kcoleman731 merged commit dd8a0d5 into main Jan 18, 2022
@vara-bonthu vara-bonthu deleted the feature/argocd-example branch January 18, 2022 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation: Add example for ArgoCD way of managing add-ons
4 participants