serverless-manager

command module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

README

Serverless Operator

Status

GitHub tag checks state

Overview

Serverless Operator allows deploying the Serverless component on the Kyma cluster in compatibility with Lifecycle Manager.

Install

Apply the following script to install Serverless Operator:

kubectl apply -f https://github.com/kyma-project/serverless-manager/releases/latest/download/serverless-operator.yaml

To get Serverless installed, apply the sample Serverless CR:

kubectl apply -f https://github.com/kyma-project/serverless-manager/releases/latest/download/default_serverless_cr.yaml

Development

Prerequisites

Manual installation using make targets

  1. Clone the project.

    git clone https://github.com/kyma-project/serverless-manager.git && cd serverless-manager/
    
  2. Set the Serverless Operator image name.

    export IMG=<DOCKER_USERNAME>/custom-serverless-operator:0.0.1
    
  3. Verify the compability.

    make test
    
  4. Build and push the image to the registry.

    make module-image
    
  5. Deploy Serverless Operator.

    make deploy
    
Test integration with Lifecycle Manager on the k3d cluster
  1. Clone the project.

    git clone https://github.com/kyma-project/serverless-manager.git && cd serverless-manager/
    
  2. Build Serverless Operator locally and run it on the k3d cluster.

    make -C hack/local run-with-lifecycle-manager
    

NOTE: To clean up the k3d cluster, use the make -C hack/local stop make target.

Using Serverless Operator

  • Create a Serverless instance.

    kubectl apply -f config/samples/default_serverless_cr.yaml
    
  • Delete a Serverless instance.

    kubectl delete -f config/samples/default_serverless_cr.yaml
    
  • Use external registry.

    The following example shows how you can modify the Serverless docker registry address using the serverless.operator.kyma-project.io CR:

    kubectl create secret generic my-secret \
        --namespace kyma-system \
        --from-literal username="<USERNAME>" \
        --from-literal password="<PASSWORD>" \
        --from-literal serverAddress="<SERVER_ADDRESS>" \
        --from-literal registryAddress="<REGISTRY_ADDRESS>"
    

    NOTE: For DockerHub:

    cat <<EOF | kubectl apply -f -
    apiVersion: operator.kyma-project.io/v1alpha1
    kind: Serverless
    metadata:
    name: serverless-sample
    spec:
        dockerRegistry:
            enableInternal: false
            secretName: my-secret
    EOF
    

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 contains API Schema definitions for the operator v1alpha1 API group +kubebuilder:object:generate=true +groupName=operator.kyma-project.io
Package v1alpha1 contains API Schema definitions for the operator v1alpha1 API group +kubebuilder:object:generate=true +groupName=operator.kyma-project.io
components
operator Module
internal
pkg

Jump to

Keyboard shortcuts

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