-
Notifications
You must be signed in to change notification settings - Fork 876
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
Add Kubernetes examples #117
Conversation
cab3b28
to
43f8031
Compare
e2aec9b
to
635ac5e
Compare
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.
Love it!
Enter a stack name: configmap-rollout-dev | ||
``` | ||
|
||
This example will attempt to expose the `nginx` deployment Internet with a `Service` of type |
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.
"Internet"?
Preview the deployment of the application: | ||
|
||
```sh | ||
$ pulumi preview |
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.
We can skip the preview
- the update
will do it anyway.
and `grep` to retrieve the `<title>` of the site the proxy points at. | ||
|
||
```sh | ||
$ curl -sL $(pulumi stack output frontendIp):80 | grep -C 1 "<title>" |
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.
You don't need :80
do you?
> 1. Update the `PodTemplate` of the `Deployment` to point at the new `ConfigMap`. This update | ||
> triggers the `Deployment` controller to try to roll out a new set of containers with mounts | ||
> that contain this new data. | ||
> 1. Only once that succeeds, delete teh old `ConfigMap`. |
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.
teh > the
```sh | ||
$ curl -sL $(pulumi stack output frontendIp):80 | grep -o "<title>Google</title>" | ||
<title>Google</title> | ||
``` |
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.
Add cleanup steps at the end?
|
||
Preview the deployment of the application. | ||
|
||
> **TIP:** This example installs the Wordpress Chart. You can use `helm search` to find other Helm |
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.
This TIP doesn't apply to this example, does it?
Notice also that if you provide an image that does not exist, Pulumi will report errors as it sees | ||
them. You should see something similar in principle to this: | ||
|
||
![Diff](images/error.gif "Error reporting") |
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.
Cleanup steps?
kubernetes-ts-guestbook/index.ts
Outdated
// If your cluster config does not include a dns service, then to instead access an environment | ||
// variable to find the master service's host, comment out the 'value: dns' line above, and | ||
// uncomment the line below: | ||
env: [{ name: "GET_HOSTS_FROM", value: "dns" /*value: "env"*/ }], |
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.
The comment is a little disconnected from the program text now.
7bc82dd
to
e1ae868
Compare
Add Kubernetes examples
Add Kubernetes examples
Fixes #115. Fixes #111.