GithubHelp home page GithubHelp logo

piechpatrick / rancher-redeploy-workload Goto Github PK

View Code? Open in Web Editor NEW

This project forked from th0th/rancher-redeploy-workload

0.0 1.0 0.0 107 KB

Docker image that redeploys a kubernetes workloads using Rancher's API.

License: MIT License

Shell 2.15% Go 86.00% Dockerfile 11.85%

rancher-redeploy-workload's Introduction

rancher-redeploy-workload is a GitHub action (and docker image) that redeploys kubernetes workloads using Rancher's API.

Usage

Hint

Running as a GitHub action

  - name: Update rancher deployment
    uses: th0th/[email protected]
    with:
      debug: 'false'
      disable_output: 'false'
      rancher_bearer_token: ${{ secrets.RANCHER_BEARER_TOKEN }}
      rancher_cluster_id: 'c-qxyky'
      rancher_namespace: 'namespace'
      rancher_project_id: 'p-hm2z1'
      rancher_url: 'https://rancher.aperturescience.tld'
      rancher_workloads: 'wheatley1,wheatley2'
      tls_skip_verification: 'false'

Inputs

Variable Required Default value Description
debug 'false' Debug flag (useful when something fails)
disable_output 'false' Disables outputting to stdout (useful if the logs are public, but you don't want to expose anything)
rancher_bearer_token Bearer token used for authenticating on Rancher
rancher_cluster_id Cluster's id on Rancher
rancher_namespace Kubernetes namespace of the deployment to be updated
rancher_project_id Project's id on Rancher
rancher_url Base URL of the Rancher
rancher_workloads Comma separated list of workloads to be updated (e.g. deployment1,deployment2)
tls_skip_verification 'false' Skipping host TLS verification

Running as a docker container

$ docker run --rm -it \
    -e DEBUG="false" \
    -e DISABLE_OUTPUT="false" \
    -e RANCHER_BEARER_TOKEN="token-xgskl:n45p7tmd47t9lfzh7xl8rw6rvtrfzzxrtdr6qvjg27r4sjcxvzss7d" \
    -e RANCHER_CLUSTER_ID="c-qxyky" \
    -e RANCHER_NAMESPACE="namespace" \
    -e RANCHER_PROJECT_ID="p-hm2z1" \
    -e RANCHER_URL="https://rancher.aperturescience.tld" \
    -e RANCHER_WORKLOADS="wheatley1,wheatley2" \
    -e TLS_SKIP_VERIFICATION="false" \
    th0th/rancher-redeploy-workload:0.9.2

Shameless plug

I am an indie hacker, and I am running two services that might be useful for your business. Check them out :)

WebGazer

WebGazer

WebGazer is a monitoring service that checks your website, cron jobs, or scheduled tasks on a regular basis. It notifies you with instant alerts in case of a problem. That way, you have peace of mind about the status of your service without manually checking it.

PoeticMetric

PoeticMetric

PoeticMetric is a privacy-first, regulation-compliant, blazingly fast analytics tool.

No cookies or personal data collection. So you don't have to worry about cookie banners or GDPR, CCPA, and PECR compliance.

License

Copyright © 2020, Gökhan Sarı. Released under the MIT License.

rancher-redeploy-workload's People

Contributors

th0th avatar piechpatrick avatar

Watchers

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