Giter Club home page Giter Club logo

multicloud-operators-subscription's Introduction

multicloud-operators-subscription

Build GoDoc Go Report Card Code Coverage License


Table of Contents generated with DocToc

Overview


Subscribes resources from Channels and apply them to kubernetes

Quick Start


Subscribe a helm chart

  • Clone the subscription operator repository
mkdir -p "$GOPATH"/src/github.com/IBM
cd "$GOPATH"/src/github.com/IBM
git clone https://github.com/IBM/multicloud-operators-subscription.git
cd "$GOPATH"/src/github.com/IBM/multicloud-operators-subscription
  • Setup environment and deploy subscription operator
kubectl apply -f ./deploy/standalone
  • Create a Channel and Subscription
kubectl apply -f ./examples/helmrepo-channel
  • Subscribe!
kubectl patch subscriptions.app.ibm.com simple --type='json' -p='[{"op": "replace", "path": "/spec/placement/local", "value": true}]'

Find the nginx pods deployed to current namespace, and the number of backend pods is overrided to 3

% kubectl get pods -l app=nginx-ingress
NAME                                                              READY     STATUS    RESTARTS   AGE
ngin-f3ts5xr8xpcml36hlkwq8tzfw-nginx-ingress-controller-68tf55x   1/1       Running   0          26s
ngin-f3ts5xr8xpcml36hlkwq8tzfw-nginx-ingress-default-backe95wfk   1/1       Running   0          26s
ngin-f3ts5xr8xpcml36hlkwq8tzfw-nginx-ingress-default-backen85m6   1/1       Running   0          26s
ngin-f3ts5xr8xpcml36hlkwq8tzfw-nginx-ingress-default-backew5p2n   1/1       Running   0          26s

Check the Getting Started doc for more details

Trouble shooting

  • Check operator availability
% kubectl get deploy,pods
NAME                                                READY     UP-TO-DATE   AVAILABLE   AGE
deployment.apps/multicloud-operators-subscription   1/1       1            1           99m

NAME                                                     READY     STATUS    RESTARTS   AGE
pod/multicloud-operators-subscription-557c676479-dh2fg   1/1       Running   0          24s
  • Check Subscription and its status
% kubectl describe subscriptions simple
Name:         simple
Namespace:    default
Labels:       <none>
Annotations:  kubectl.kubernetes.io/last-applied-configuration={"apiVersion":"app.ibm.com/v1alpha1","kind":"Subscription","metadata":{"annotations":{},"name":"simple","namespace":"default"},"spec":{"channel":"dev/d...
API Version:  app.ibm.com/v1alpha1
Kind:         Subscription
Metadata:
  Creation Timestamp:  2019-10-20T00:43:54Z
  Generation:          14
  Resource Version:    39456
  Self Link:           /apis/app.ibm.com/v1alpha1/namespaces/default/subscriptions/simple
  UID:                 2abed0ce-78e0-42e9-bc25-39737bc50220
Spec:
  Channel:  dev/dev-helmrepo
  Name:     nginx-ingress
  Package Overrides:
    Package Name:  nginx-ingress
    Package Overrides:
      Path:   spec.values
      Value:  controller:
  replicaCount: 3

  Placement:
    Local:  true
Status:
  Last Update Time:  2019-10-20T02:46:25Z
  Phase:             Subscribed
  Statuses:
    /:
      Packages:
        Dev - Helmrepo - Nginx - Ingress - 1 . 24 . 3:
          Last Update Time:  2019-10-20T02:46:25Z
          Phase:             Subscribed
          Resource Status:
            Last Update:  2019-10-20T02:46:13Z
            Phase:        Success
Events:                   <none>

Please refer to Trouble shooting documentation for further info.

Community, discussion, contribution, and support


Check the DEVELOPMENT Doc for how to build and make changes.

Check the CONTRIBUTING Doc for how to contribute to the repo.

You can reach the maintainers of this by raising issues. Slack communication is coming soon

References


multicloud-operators repositories


If you have any further questions, please refer to help documentation for further information.

multicloud-operators-subscription's People

Contributors

kuanf avatar ianzhang366 avatar xiangjingli avatar gyliu513 avatar kant avatar stevemar avatar hassenius avatar

Watchers

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