-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add DigitalOcean Support #104
Conversation
@@ -81,6 +81,11 @@ if pulumi config get kubernetes:infra_type -C ${script_dir}/../pulumi/python/con | |||
sleep 5 | |||
${script_dir}/destroy_kube.sh | |||
exit 0 | |||
elif [ $INFRA == 'DO' ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we need per provider logic, it may be better to have a fixed path where we look for a script with a filename that includes an identifier. If the script exists, then we execute it. If we start to fork a lot of logical paths for each provider, we may quickly have a mess. Take this with a grain of salt.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -378,6 +385,11 @@ def add_namespace(obj): | |||
pulumi.export('ipaddress', lb_ingress_ip) | |||
#pulumi.export('application_url', f'https://{lb_ingress_hostname}') | |||
application_url = sirius_host.apply(lambda host: f'https://{host}') | |||
elif infra_type == 'DO': | |||
pulumi.export('hostname', lb_ingress_hostname) | |||
pulumi.export('ipaddress', lb_ingress_ip) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My mind desperately wants an underscore between ip and address.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mine too....but when I started digging I found out that it's "ipaddress" in all the library code so I decided to be consistent with the rest of the code.
Proposed changes
This change adds support for Digital Ocean, including the ability to stand up and tear down a K8 cluster as well as the additional logic required to deploy the monitoring/management resources and the Bank of Sirius application.
This change only works with the ingress-controller being deployed from the repo (NGINX or NGINX Plus). Full support for building the Ingress Controller, pushing to a private registry, etc will be implemented as part of #81. Full support for the IP/Hostname assigned by the K8 LoadBalancer object will continue to be managed by #82
Checklist
Before creating a PR, run through this checklist and mark each as complete.