Skip to content

Add Deploy #63

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

Merged
merged 1 commit into from
Jun 2, 2016
Merged

Add Deploy #63

merged 1 commit into from
Jun 2, 2016

Conversation

waprin
Copy link
Contributor

@waprin waprin commented May 16, 2016

This is alternative to deploy.sh

Not sure if I also want to create Pub/Sub
topics etc.

Docs will come next.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 16, 2016
@waprin
Copy link
Contributor Author

waprin commented May 16, 2016

I think I want @elibixby to do the review but he is prob busy with OSCON, maybe just merge this next week.

items:
- key: startup-script
value: |
{% for line in imports['startup-script'].split('\n') %}

Choose a reason for hiding this comment

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

weird. Can't you just put in the entire value 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 could carefully put the entire script, but I want to import it from our existing one. I wish I could still just dump the imported variable but dm team told me this the only way to get the whitespace rendered correctly

Choose a reason for hiding this comment

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

ಠ_ಠ

You could try to use jinja's indent filter, maybe something like

{{imports['startup-script']|indent(10)}}

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 based this based on what the dm team told but I'll give yours a shot out of curiosity

Choose a reason for hiding this comment

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

Don't sweat it too much if it doesn't work.

@theacodes
Copy link

I'd like to see more comments as to why each resource is needed and how it fits in with the deployment.

But overall, i'm +1 on this change.

@waprin
Copy link
Contributor Author

waprin commented May 17, 2016

I mostly took the comments from your deploy.sh script into here with some minor edits. Let me try your suggested yaml change.

This is alternative to deploy.sh

Not sure if I also want to create Pub/Sub
topics etc.

Docs will come next.
@elibixby
Copy link

@waprin Done with my talk, so I can review this now.

portName: http
backends:
- group: $(ref.{{ NAME }}-frontend-group.instanceGroup)
zone: {{ properties['zone'] }}

Choose a reason for hiding this comment

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

One of the big benefits of L7 load balancing on GCE is that you can load balance across multiple regions. In my template I create IGMs for each zone in a list of zones, which might be cool to demonstrate here.... Otherwise I would say just use L3 since the urlmap is trivial.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cool, I know you did that for the globally available one, as a starting point I was pretty much porting the gcloud deploy script but I'll look into it.

@waprin
Copy link
Contributor Author

waprin commented Jun 2, 2016

@jonparrott image family support for instance templates wont get added anytime soon. Even now with gcloud, gcloud is actually just pulling down the latest image for a family and creating the instance template with that. Trying to escalate it as a feature but wondering if we can merge this in the meantime.

@theacodes
Copy link

Fine with me.

On Thu, Jun 2, 2016, 11:20 AM Bill Prin notifications@github.com wrote:

@jonparrott https://github.com/jonparrott image family support for
instance templates wont get added anytime soon. Even now with gcloud,
gcloud is actually just pulling down the latest image for a family and
creating the instance template with that. Trying to escalate it as a
feature but wondering if we can merge this in the meantime.


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#63 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAPUc67qIm9mBJfMeuImvFZi3whSQZrRks5qHx7cgaJpZM4IfzlH
.

@waprin waprin merged commit 08a5dc2 into master Jun 2, 2016
@bshaffer bshaffer deleted the deploy branch November 22, 2019 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants