Table of Contents generated with DocToc
- Overview
- Quick start
- Community, discussion, contribution, and support
- Getting started
- Security response
- References
Subscribes resources from channels and applies them to Kubernetes
mkdir -p "$GOPATH"/src/github.com/open-cluster-management
cd "$GOPATH"/src/github.com/open-cluster-management
git clone https://github.com/open-cluster-management/multicloud-operators-subscription.git
cd "$GOPATH"/src/github.com/open-cluster-management/multicloud-operators-subscription
- Set up the environment, and deploy the subscription operator.
kubectl apply -f ./deploy/standalone
- Create a Channel and a Subscription.
kubectl apply -f ./examples/helmrepo-channel
- Subscribe!
kubectl patch subscriptions.apps.open-cluster-management.io simple --type='json' -p='[{"op": "replace", "path": "/spec/placement/local", "value": true}]'
Find the nginx pods that are deployed to the current namespace. You should have 3 backend pods with the controller.
% kubectl get pods -l app=nginx-ingress
NAME READY STATUS RESTARTS AGE
nginx-ingress-controller-857f44797-7fx7c 1/1 Running 0 96s
nginx-ingress-default-backend-6b8dc9d88f-97pxz 1/1 Running 0 96s
nginx-ingress-default-backend-6b8dc9d88f-drt7c 1/1 Running 0 96s
nginx-ingress-default-backend-6b8dc9d88f-n26ls 1/1 Running 0 96s
Check the Getting started doc for more details.
- 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 the Subscription and its status.
% kubectl describe appsub simple
Name: simple
Namespace: default
Labels: <none>
Annotations: kubectl.kubernetes.io/last-applied-configuration:
{"apiVersion":"apps.open-cluster-management.io/v1","kind":"Subscription","metadata":{"annotations":{},"name":"simple","namespace":"default"},"spec":{"ch...
API Version: apps.open-cluster-management.io/v1
Kind: Subscription
Metadata:
Creation Timestamp: 2019-11-21T04:01:47Z
Generation: 2
Resource Version: 24045
Self Link: /apis/apps/v1/namespaces/default/subscriptions/simple
UID: a35b6ef5-0c13-11ea-b4e7-00000a100ef8
Spec:
Channel: dev/dev-helmrepo
Name: nginx-ingress
Package Overrides:
Package Alias: nginx-ingress-alias
Package Name: nginx-ingress
Package Overrides:
Path: spec
Value: defaultBackend:
replicaCount: 3
Placement:
Local: true
Status:
Last Update Time: 2019-11-21T04:02:38Z
Phase: Subscribed
Statuses:
/:
Packages:
dev-helmrepo-nginx-ingress-1.25.0:
Last Update Time: 2019-11-21T04:02:38Z
Phase: Subscribed
Resource Status:
Last Update: 2019-11-21T04:02:24Z
Phase: Success
Events: <none>
Check the CONTRIBUTING Doc for how to contribute to the repository.
Check the Development Doc for information about how to contribute to the repository.
Check the Security Doc if you find a security issue.