cloudpak-provider

module
v0.0.0-...-57d6026 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2021 License: Apache-2.0

README

cloudpak-provider

cloudpake-provider is a Crossplane Provider , which helps preparing dependencies and installing cloudpak .

Getting Started

Prerequisites

Play

Following executing are all in cluster which installing crossplane

Create secret storing the kubeconfig

Using the kubeconfig in this repo as example :

kubectl create secret generic example-provider-secret --from-file=credentials=./examples/provider/kubeconfig

You need replace the sample kubeconfig with your target kubeconfig

Create secret storing the imagepullsecret

You can directly use the repo one as below :

kubectl apply -f examples/dependency/imagePullSecret.yaml
Create provider config
kubectl apply -f examples/provider/config.yaml
Create a Dependency CR to prepare dependencies in target cluster
kubectl apply -f examples/dependency/dependency.yaml
Start the provider to watch procedure
make run 
Install provider-helm

Since I use helm-chart to deploy aiops intallation , so you need install provider-helm

cat << EOF | oc apply -f -
apiVersion: pkg.crossplane.io/v1alpha1
kind: Provider
metadata:
  name: provider-helm
spec:
  package: "crossplane/provider-helm:master"
EOF

And create a corresponding provider-config use the secret storing your target kubeconfig

cat << EOF | oc apply -f -
apiVersion: helm.crossplane.io/v1beta1
kind: ProviderConfig
metadata:
  name: helm-provider
spec:
  credentials:
    source: Secret
    secretRef:
      name: example-provider-secret
      namespace: crossplane-system
      key: credentials
EOF      
Install aiops
kubectl apply -f examples/aiops/installation.yaml 

Note: you can modify the values in yaml to customize your installation

Directories

Path Synopsis
Package apis contains Kubernetes API for the Template provider.
Package apis contains Kubernetes API for the Template provider.
dependency
Package sample contains group Sample API versions
Package sample contains group Sample API versions
dependency/v1alpha1
Package v1alpha1 contains the v1alpha1 group Sample resources of the Template provider.
Package v1alpha1 contains the v1alpha1 group Sample resources of the Template provider.
v1alpha1
Package v1alpha1 contains the core resources of the Template provider.
Package v1alpha1 contains the core resources of the Template provider.
cmd
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL