Code Monkey home page Code Monkey logo

lab-tbs's Introduction

LAB - Markdown Sample

Sample workshop content using Markdown formatting for pages.

For more detailed information on how to create and deploy workshops, consult the documentation for Educates at:

If you already have the Educates operator installed and configured, to deploy and view this sample workshop, run:

kubectl apply -f https://raw.githubusercontent.com/ryan-a-baker/educates-tbs/master/resources/workshop.yaml
kubectl apply -f https://raw.githubusercontent.com/ryan-a-baker/educates-tbs/master/resources/training-portal.yaml

This will deploy a training portal hosting just this workshop. To get the URL for accessing the training portal run:

kubectl get trainingportal/lab-markdown-sample

The training portal is configured to allow anonymous access. For your own workshop content you should consider removing anonymous access.

kp secret create harbor-demo-creds --registry harbor-educates.ryanbaker.io --registry-user admin
kp image create spring-petclinic-2 --tag harbor-demo.ryanbaker.io/demo-tbs/spring-petclinic --git https://github.com/ryan-a-baker/spring-petclinic.git --git-revision main --cluster-builder base --wait

Fresh Cluster Setup

Install Contour

kubectl apply -f https://projectcontour.io/quickstart/contour.yaml

Apply Operator

kubectl apply -k "github.com/eduk8s/eduk8s?ref=master"

Set Domain

kubectl set env deployment/eduk8s-operator -n eduk8s INGRESS_DOMAIN=ryanbaker.io

Redeploy

k delete TrainingPortal lab-markdown-sample; k delete workshop lab-markdown-sample; k delete pods -n eduk8s -l deployment=eduk8s-operator; sleep 120; k apply -f resources/workshop.yaml; k apply -f resources/training-portal.yaml

Push docker image to harbor

Using the 100.0.58 Build Version

docker pull registry.pivotal.io/tbs-dependencies/build-base@sha256:b788d90e57d3ce64a7144dca187cad0dace90b37e454ef07c8af9551a7f744b1
docker pull registry.pivotal.io/tbs-dependencies/run-base@sha256:891d87e0380f06152565b8c59f871750fa0535ab1c1b548112d671412fb8c4d9

kp clusterstack create demo-stack --build-image harbor-demo.ryanbaker.io/educates-tbs/tbs/build@sha256:82c6a2e1a16217418be6c08bdbccdf7bfb22ddf2f09340bf2a7eb0e55359182c --run-image harbor-demo.ryanbaker.io/educates-tbs/tbs/run@sha256:47481aa496959d425f4a7d306875c0e17babe3981cc98a406b177f1491e5a27d kp clusterstack update demo-stack --build-image registry.pivotal.io/tanzu-base-bionic-stack/build:1.0.12-base-cnb --run-image registry.pivotal.io/tanzu-base-bionic-stack/run:1.0.12-base-cnb kp clusterbuilder create demo-cluster-builder --order ./full-order-100.0.18.yaml --stack demo-stack --store default

Fresh Install

To install this workshop on a fresh cluster, we need to install the configurations for:

Metadatacontrollers

Use YTT to install these controllers

cd install/workshop 
./install-metacontrollers.sh ../../values.yaml

Tanzu Build Service

Install Tanzu Build Service according to the install directions

Import Dependencies

In order to set this up to work with the demo, first we'll import the latest descriptor from the Tanzu Network:

https://network.pivotal.io/products/tbs-dependencies/

Then - in order to create the "outdated" image, we'll import the outdated build service

kp import -f descriptor-demo.yaml

lab-tbs's People

Contributors

brianmmcclain avatar ryan-a-baker avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.