-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Partially recommit changes from #236
In this pull request #236 we added new documentation about the V3 API, but this PR also included some single sign-on content (from #234) that has since been overwritten This commit recommits the content which we care about. Co-authored-by: Jon <[email protected]> Co-authored-by: Toby <[email protected]> Rename ssh.md to ssh.erb & add warning text v3 ssh
- Loading branch information
Toby Lorne
committed
Aug 1, 2019
1 parent
af65f83
commit 4826a0f
Showing
3 changed files
with
105 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -159,7 +159,18 @@ You must create a [network policy](https://cli.cloudfoundry.org/en-US/cf/add-net | |
cf add-network-policy PUBLIC_APPNAME --destination-app PRIVATE_APPNAME --protocol tcp --port 8080 | ||
``` | ||
|
||
Contact us at [[email protected]](mailto:[email protected]) if you have any further questions. | ||
#### Recreate the network policy | ||
|
||
You must recreate the network policy every time you push your app if you’re using both: | ||
|
||
- [version 2 of the Cloud Foundry API](https://github.com/cloudfoundry/cloud_controller_ng/tree/master/docs/v2) | ||
- a [blue-green deployment tool](https://docs.cloudfoundry.org/devguide/deploy-apps/blue-green.html) to reduce downtime | ||
|
||
This is because every time you push your app, the blue-green deployment tool creates a new version of the public app. The existing network policy will then no longer work. | ||
|
||
[Version 3 of the Cloud Foundry API](https://github.com/cloudfoundry/cloud_controller_ng/tree/master/docs/v3) deploys your app with zero downtime. You do not need to recreate the network policy every time you push your app. | ||
|
||
Contact us at [[email protected]](mailto:[email protected]) if you have any questions. | ||
|
||
## Data security classification | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,17 +56,17 @@ The default method to sign in to Cloud Foundry is to use your [GOV.UK PaaS accou | |
|
||
When you have signed in, run `cf` in the command line to see all available commands. | ||
|
||
### Use single sign-on | ||
### Use single sign-on | ||
|
||
You can sign in to Cloud Foundry using the single sign-on function. | ||
You can sign in to Cloud Foundry using the single sign-on function. | ||
|
||
Using single sign-on makes managing your security, joining and leaving processes simpler by reducing the number of passwords or accounts you have to manage. | ||
|
||
You must have either a [Google](https://myaccount.google.com/intro) or [Microsoft](https://account.microsoft.com/account) email address to use single sign-on. The email address must be the same as the one you use to sign into your GOV.UK PaaS account. | ||
|
||
#### Enable single sign-on | ||
|
||
1. Sign into the GOV.UK PaaS admin tool for [London](https://admin.london.cloud.service.gov.uk/) or [Ireland](https://admin.cloud.service.gov.uk/). | ||
1. Sign into the GOV.UK PaaS admin tool for [London](https://admin.london.cloud.service.gov.uk/) or [Ireland](https://admin.cloud.service.gov.uk/). | ||
|
||
1. Select __Set up Google/Microsoft single sign-on__ and then select __Activate Google/Microsoft single sign-on__. | ||
|
||
|
@@ -137,7 +137,8 @@ You can practice deploying an app by deploying a test static HTML page. | |
applications: | ||
- name: APPNAME | ||
memory: 64M | ||
buildpack: staticfile_buildpack | ||
buildpacks: | ||
- staticfile_buildpack | ||
``` | ||
|
||
where `APPNAME` is the unique name for your app. You can run `cf apps` to see apps which already exist. | ||
|
@@ -150,6 +151,87 @@ You can practice deploying an app by deploying a test static HTML page. | |
|
||
If you do not specify the app name in `cf push`, the name specified in the manifest file is used. | ||
|
||
The static HTML page is now available at your [app domain](/orgs_spaces_users.html#regions). | ||
The static HTML page is now available at your [app domain](/orgs_spaces_users.html#regions). | ||
|
||
For a production app, you should read the [production checklist](deploying_apps.html#production-checklist). | ||
For a production app, you should follow the [production checklist](deploying_apps.html#production-checklist). | ||
|
||
### Use Cloud Foundry API version 3 | ||
|
||
Version 3 allows you to push an app with no downtime without having to use a [blue-green deployment tool](https://docs.cloudfoundry.org/devguide/deploy-apps/blue-green.html). | ||
|
||
<br> | ||
|
||
<%= warning_text('Version 3 of the Cloud Foundry API is still in beta.') %> | ||
|
||
Refer to the [Cloud Foundry documentation on the limitations of API version 3](https://docs.cloudfoundry.org/devguide/deploy-apps/rolling-deploy.html#limitations) for more information. | ||
|
||
1. To deploy an app, you must select a [target](deploying_apps.html#set-a-target). This is a combination of an [organisation](/orgs_spaces_users.html#organisations) and a [space](/orgs_spaces_users.html#spaces). | ||
|
||
All orgs have a sandbox space for you to use when learning about the PaaS. When deploying a test static HTML page, you should target this sandbox space by running: | ||
|
||
``` | ||
cf target -o ORGNAME -s sandbox | ||
``` | ||
|
||
where `ORGNAME` is your org and `sandbox` is the name of the sandbox space. | ||
|
||
If you deploy an app using the same name and target as an existing app, the original will be replaced. If you are not sure about where to deploy your app, consult the rest of your team or speak to the PaaS team by emailing [[email protected]](mailto:[email protected]). | ||
|
||
2. In an empty directory, create an `index.html` file containing the following markup: | ||
|
||
``` | ||
<html> | ||
<head> | ||
<title>Static Site</title> | ||
</head> | ||
<body> | ||
<p>Welcome to the static site!</p> | ||
</body> | ||
</html> | ||
``` | ||
|
||
3. Create a `manifest.yml` file in the same directory as the `index.html` file. The manifest file tells Cloud Foundry what to do with your app. | ||
|
||
``` | ||
--- | ||
applications: | ||
- name: APPNAME | ||
memory: 64M | ||
buildpacks: | ||
- staticfile_buildpack | ||
``` | ||
|
||
where `APPNAME` is the unique name for your app. You can run `cf apps` to see apps which already exist. | ||
|
||
The `memory` line tells the PaaS how much memory to allocate to the app. | ||
|
||
A buildpack provides app framework and runtime support. For example, if your app was written in Ruby, you would use the `ruby_buildpack`. In this example, we use the `staticfile_buildpack` for the static HTML page. | ||
|
||
4. Create an app: | ||
|
||
``` | ||
cf v3-create-app APPNAME | ||
``` | ||
|
||
`APPNAME` is the unique name for your app that you specified in the manifest file. | ||
|
||
You only need to run this command if you’re creating a new app that uses version 3 of the API. | ||
|
||
5. Apply your created manifest file to your app: | ||
|
||
``` | ||
cf v3-apply-manifest -f PATH_TO_MANIFEST | ||
``` | ||
|
||
6. Push a zero downtime version of your app: | ||
|
||
``` | ||
cf v3-zdt-push APPNAME --wait-for-deploy-complete | ||
``` | ||
The command line will display a message when your app has finished deploying. | ||
|
||
The static HTML page is now available at your [app domain](/orgs_spaces_users.html#regions). | ||
|
||
For a production app, you should follow the [production checklist](deploying_apps.html#production-checklist) to deploy that app. | ||
|
||
Refer to the [Cloud Foundry documentation on rolling app deployments](https://docs.cloudfoundry.org/devguide/deploy-apps/rolling-deploy.html) for more information on version 3 of the Cloud Foundry API. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters