From ba23cbfd84dcb07345ca11029b9d239292dd6ad0 Mon Sep 17 00:00:00 2001 From: calvinh Date: Tue, 27 Feb 2018 02:19:34 +0000 Subject: [PATCH] added more content --- README.md | 14 ++++++-------- cdk-rancher-ingress.yaml | 8 +++++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index ff0147a..1e38f09 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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") diff --git a/cdk-rancher-ingress.yaml b/cdk-rancher-ingress.yaml index ea1d589..99a4f23 100644 --- a/cdk-rancher-ingress.yaml +++ b/cdk-rancher-ingress.yaml @@ -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: @@ -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: /