Giter Site home page Giter Site logo

must-gather-apiserver-operator's Introduction

Must-Gather APIServer Operator

A Kubernetes Operator for deploying MustGatherAPIServers (based on static-kas)

There is a published image for this operator that can be imported into your cluster runnning the following commands: (The REPLACE_ME placeholder should be replaced with an HTTP(S) URL to download the Zip of the MustGather)

➤ oc adm policy add-cluster-role-to-user cluster-admin -z default
➤ kubectl apply -f https://raw.githubusercontent.com/MichaelWasher/must-gather-server-operator/main/config/crd/bases/mustgatherserver.michael-washer.com_mustgatherapiservers.yaml    
➤ kubectl run --image quay.io/mwasher/mustgatherapiserveroperator:0.0.1 mustgatherapiserveroperator
➤ cat <<EOF | k apply -f -
apiVersion: mustgatherserver.michael-washer.com/v1alpha1
kind: MustGatherAPIServer
metadata:
  labels:
    app: must-gather-server
  name: must-gather-server
spec:
  mustgatherurl: REPLACE_ME
EOF

This will start Pods similar to the following:

must-gather-server-operator ➤ k get pods
NAME                                                      READY   STATUS    RESTARTS      AGE
must-gather-server-mustgatherapiserver-5c8fc67449-nh8qj   1/1     Running   0             21s
mustgatherapiserveroperator                               1/1     Running   1 (31m ago)   34m

Note: This is insecure and will be replaced with an alternative approach shortly.

To access the cluster, the following can be used:

➤ kubectl port-forward svc/must-gather-server 8080:8080 &
➤ cat <<EOF >/tmp/kk
apiVersion: v1
clusters:
- cluster:
    server: http://localhost:8080
  name: static-kas
contexts:
- context:
    cluster: static-kas
    namespace: default
  name: static-kas
current-context: static-kas
kind: Config
EOFalias omg="kubectl --kubeconfig /tmp/kk "

must-gather-apiserver-operator's People

Contributors

michaelwasher avatar

Watchers

 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.