Skip to content

halamix2/docker-registry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dockerregistry

Status

GitHub tag checks state

REUSE status

Overview

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

Install

Create the kyma-system namespace:

kubectl create namespace kyma-system

Apply the following script to install Serverless Operator:

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

To get Serverless installed, apply the sample Serverless CR:

kubectl apply -f https://github.com/kyma-project/docker-registry/releases/latest/download/default-serverless-cr.yaml

Development

Prerequisites

Installation in the k3d Cluster Using Make Targets

  1. Clone the project.

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

    make run

NOTE: To clean up the k3d cluster, use the make delete-k3d make target.

Using Serverless Operator

  • Create a Serverless instance.

    kubectl apply -f config/samples/default-dockerregistry-cr.yaml
  • Delete a Serverless instance.

    kubectl delete -f config/samples/default-dockerregistry-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

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 90.3%
  • Makefile 6.4%
  • Mustache 1.1%
  • Shell 0.8%
  • JavaScript 0.8%
  • Dockerfile 0.5%
  • Smarty 0.1%