Skip to content

Commit

Permalink
added more content
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinHartwell committed Feb 27, 2018
1 parent 05e012a commit ba23cbf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,14 +449,6 @@ Linux hello-ubuntu 4.4.0-1050-aws #59-Ubuntu SMP Tue Jan 30 19:57:10 UTC 2018 x8

The workloads interface can also be used to destroy, reprovision, clone and perform many other tasks on workloads running on Kubernetes.

### Deploying a Workload with Service and Ingress Rules

Typically a workload on-top of Kubernetes should be run with Ingress Rules and Services. The Rancher interface allows us to easily define, manipulate and create these Kubernetes constructs.

We will start by deploying a new container workload called cdk-cats, the container name is calvinhartwell/cdk-cats:latest

To do this, we

### Deploying a Workload with Rancher Catalog

Rancher can also launch a workload using the Rancher catalog. First hover over the Global option in the top left-hand part of the menu. Once the menu appears, click Default at the bottom to select the Default project.
Expand Down Expand Up @@ -490,6 +482,12 @@ This will create two files, certificate.pem and key.pem. Back on the Rancher GUI

![rancher certs](https://raw.githubusercontent.com/CalvinHartwell/cdk-rancher/master/images/rancher-gui-add-cert.png "Rancher Add Certs")

We also need to Enable the catalogs. To do this, go to the Global View and hit the Catalogs Button. You should see a screen like this:

![rancher enable catalog](https://raw.githubusercontent.com/CalvinHartwell/cdk-rancher/master/images/rancher-gui-catalogs-enable.png "Rancher Catalogs Enable")

There are two buttons which read Disabled, one for Rancher certified Library and one for Community Contributed. Press both of these to Enable to continue.

Next, hit the Catalog Apps button, you should see a screen like this:

![rancher gui catalog](https://raw.githubusercontent.com/CalvinHartwell/cdk-rancher/master/images/rancher-gui-catalog-launch.png "Rancher Catalog Launch")
Expand Down
8 changes: 5 additions & 3 deletions cdk-rancher-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,12 @@ spec:
creationTimestamp: null
labels:
app: rancher
ima: pod
spec:
containers:
- image: rancher/server:preview
imagePullPolicy: Always
name: rancher
ports:
- containerPort: 80
- containerPort: 443
livenessProbe:
httpGet:
Expand Down Expand Up @@ -84,9 +82,13 @@ apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: rancher
annotations:
nginx.org/ssl-services: "ssl-svc"
spec:
tls:
- secretName: tls-certificate
rules:
- host: rancher.35.178.130.245.xip.io
- host: rancher.34.244.118.135.xip.io
http:
paths:
- path: /
Expand Down

0 comments on commit ba23cbf

Please sign in to comment.