GithubHelp home page GithubHelp logo

gitops-deploy's Introduction

What is this?

This is a simple repo that is parte of a guided exercise for the Red Hat course DO380 Red Hat OpenShift Administration III: Scaling Kubernetes Deployments in the Enterprise

If nothing else, this can be used as an example of things used in a GitOps Jenkins deployment

What you need to do

In OpenShift:

oc new-project gitops-deploy

Get a list of Jenkins templates:

oc get template -n openshift | grep jenkins

Pick one and create a new app for it:

oc new-app --template jenkins-persistent

As an admin user in OpenShift, grant the Jenkins service account permissions to create projects:

oc adm policy add-cluster-role-to-user self-provisioner -z jenkins -n gitops-deploy

(This creates a cluster role binding resource, which is NOT namespaced, and references a service account which IS namespaced. Thus the need for -n

This should create a Jenkins pod and you will need to log into the Jenkins pod and set up your pipeline.

When logged into Jenkins, Click New Item on the Dashboard page, give it a name and select Multibranch Pipeline Under the Branch Sources heading, select Add Source -> Git and put in the repo address you are using in the Project Repository field. Save and move on.

This should go through the pipeline and then hang on test because the pipeline is waiting for verification.

gitops-deploy's People

Contributors

oesgul avatar

Watchers

James Cloos avatar  avatar  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.