Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
146e32e
Add the doc for install knative on IBMCloudPrivate
zxDiscovery Dec 3, 2018
a0b6797
update IBMCloudPrivate doc follow the review commments
zxDiscovery Dec 3, 2018
f4cb15b
update according to the review comments
zxDiscovery Dec 4, 2018
9882adf
update follow by the review comments
zxDiscovery Dec 7, 2018
03da0c1
update doc according to the review comments
zxDiscovery Dec 10, 2018
e820b54
Update Format
zxDiscovery Dec 10, 2018
71f5653
Format update
zxDiscovery Dec 10, 2018
194a01e
Format update
zxDiscovery Dec 10, 2018
e1b7485
Format update
zxDiscovery Dec 10, 2018
ef708ae
merge master branch
zxDiscovery Dec 11, 2018
6ebdef1
Merge branch 'master' into Add-ICP-doc
zxDiscovery Dec 11, 2018
b75f11a
Remove repeated words (#654)
GuessWhoSamFoo Dec 11, 2018
7f185c4
Update service.yaml in the gitwebhook sample (#648)
yifange Dec 11, 2018
ef7ef10
Format markdown (#658)
mattmoor-sockpuppet Dec 12, 2018
9530cae
Add Docker for Mac setup instructions. (#627)
markusthoemmes Dec 12, 2018
bd84cdb
Add the doc for install knative on IBMCloudPrivate
zxDiscovery Dec 3, 2018
ec776ab
update IBMCloudPrivate doc follow the review commments
zxDiscovery Dec 3, 2018
2255649
update according to the review comments
zxDiscovery Dec 4, 2018
b37f838
update follow by the review comments
zxDiscovery Dec 7, 2018
fa55726
update doc according to the review comments
zxDiscovery Dec 10, 2018
37382d0
Update Format
zxDiscovery Dec 10, 2018
8f03e80
Format update
zxDiscovery Dec 10, 2018
694a9cb
Format update
zxDiscovery Dec 10, 2018
a3d46df
Format update
zxDiscovery Dec 10, 2018
3c1f8ce
update README.md
zxDiscovery Dec 13, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eventing/samples/github-source/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ events from your public repositories and to create webhooks for those
repositories. Copy and save this token; GitHub will force you to
generate it again if misplaced.

Here's an example for a token named "GitHubSource Sample" with the the
Here's an example for a token named "GitHubSource Sample" with the
recommended scopes:

![GitHub UI](personal_access_token.png "GitHub personal access token screenshot")
Expand Down
120 changes: 120 additions & 0 deletions install/Knative-with-Docker-for-Mac.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
# Knative Install on Docker for Mac

This guide walks you through the installation of the latest version of
[Knative Serving](https://github.com/knative/serving) using pre-built images and
demonstrates creating and deploying an image of a sample "hello world" app onto
the newly created Knative cluster.

You can find [guides for other platforms here](README.md).

## Before you begin

Knative requires a Kubernetes cluster v1.10 or newer. If you don't have one, you
can create one using [Docker for Mac](https://docs.docker.com/docker-for-mac/).
If you haven't already,
[install Docker for Mac](https://docs.docker.com/docker-for-mac/install/) before
continuing.

## Creating a Kubernetes cluster

1. After Docker for Mac is installed, configure it with sufficient resources.
You can do that via the
[_Advanced_ menu](https://docs.docker.com/docker-for-mac/#advanced) in Docker
for Mac's preferences. Set **CPUs** to at least **4** and **Memory** to at
least **8.0 GiB**.
1. Now enable Docker for Mac's
[Kubernetes capabilities](https://docs.docker.com/docker-for-mac/#kubernetes)
and wait for the cluster to start up.

## Installing Istio

Knative depends on Istio. Run the following to install Istio. (This changes
`LoadBalancer` to `NodePort` for the `istio-ingress` service).

```shell
curl -L https://raw.githubusercontent.com/knative/serving/v0.2.1/third_party/istio-1.0.2/istio.yaml \
| sed 's/LoadBalancer/NodePort/' \
| kubectl apply --filename -

# Label the default namespace with istio-injection=enabled.
kubectl label namespace default istio-injection=enabled
```

Monitor the Istio components until all of the components show a `STATUS` of
`Running` or `Completed`:

```shell
kubectl get pods --namespace istio-system
```

It will take a few minutes for all the components to be up and running; you can
rerun the command to see the current status.

> Note: Instead of rerunning the command, you can add `--watch` to the above
> command to view the component's status updates in real time. Use CTRL+C to
> exit watch mode.

## Installing Knative Serving

Next, install [Knative Serving](https://github.com/knative/serving).

Because you have limited resources available, use the
`https://github.com/knative/serving/releases/download/v0.2.1/release-lite.yaml`
file, which omits some of the monitoring components to reduce the memory used by
the Knative components. To use the provided `release-lite.yaml` release, run:

```shell
curl -L https://github.com/knative/serving/releases/download/v0.2.1/release-lite.yaml
```

> Note: Unlike minikube, we're not changing the LoadBalancer to a NodePort here.
> Docker for Mac will assign `localhost` as the host for that LoadBalancer,
> making the applications available easily.

Monitor the Knative components until all of the components show a `STATUS` of
`Running`:

```shell
kubectl get pods --namespace knative-serving
```

Just as with the Istio components, it will take a few seconds for the Knative
components to be up and running; you can rerun the command to see the current
status.

> Note: Instead of rerunning the command, you can add `--watch` to the above
> command to view the component's status updates in real time. Use CTRL+C to
> exit watch mode.

Now you can deploy an app to your newly created Knative cluster.

## Deploying an app

Now that your cluster has Knative installed, you're ready to deploy an app.

If you'd like to follow a step-by-step guide for deploying your first app on
Knative, check out the
[Getting Started with Knative App Deployment](getting-started-knative-app.md)
guide.

If you'd like to view the available sample apps and deploy one of your choosing,
head to the [sample apps](../serving/samples/README.md) repo.

> Note: You can replace the {IP_ADDRESS} placeholder used in the samples with
> `localhost` as mentioned above.

## Cleaning up

Docker for Mac supports several levels of resetting its state and thus cleaning
up.

To reset only the Kubernetes cluster to a fresh one, click "Reset Kubernetes
cluster" in the
[_Reset_ preferences](https://docs.docker.com/docker-for-mac/#reset).

---

Except as otherwise noted, the content of this page is licensed under the
[Creative Commons Attribution 4.0 License](https://creativecommons.org/licenses/by/4.0/),
and code samples are licensed under the
[Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0).
Loading