platform-operator

module
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0

README

Platform Operator

Platform Operator is Kubernetes operator designed to be run in a multi-tenanted environment.

Current features:

  • Auto-Delete: cleanup namespaces after a certain expiry period by labeleling the namespace with auto-delete.
  • ClusterResourceQuota: allows quotas to be enforced across the entire cluster.

Install

  1. Generate the YAML manifests containing all the resources (CRDs, namespaces, Deployment, etc...)
make generate

This command will create the file manifests.yaml. Don't make manual changes to this file.

  1. Deploy the generated configuration in the cluster:
make deploy
kubectl apply -f config/deploy/manifests.yaml
namespace/flanksource-system created
customresourcedefinition.apiextensions.k8s.io/clusterresourcequotas.platform.flanksource.com created
validatingwebhookconfiguration.admissionregistration.k8s.io/flanksource-validating-webhook-configuration created
role.rbac.authorization.k8s.io/flanksource-leader-election created
clusterrole.rbac.authorization.k8s.io/flanksource-clusterresourcequota-editor created
clusterrole.rbac.authorization.k8s.io/flanksource-clusterresourcequota-viewer created
clusterrole.rbac.authorization.k8s.io/flanksource-manager created
rolebinding.rbac.authorization.k8s.io/flanksource-leader-election created
clusterrolebinding.rbac.authorization.k8s.io/flanksource-manager created
service/flanksource-webhook-service created
deployment.apps/flanksource-controller-manager created
certificate.cert-manager.io/flanksource-serving-cert configured
issuer.cert-manager.io/flanksource-selfsigned-issuer configured

This command use kustomize to build the manifests. Once ready the manifests are applied to the cluster and the operator starts.

Directories

Path Synopsis
cmd
pkg
apis/platform/v1
Package v1 contains API Schema definitions for the platform v1 API group +kubebuilder:object:generate=true +groupName=platform.flanksource.com
Package v1 contains API Schema definitions for the platform v1 API group +kubebuilder:object:generate=true +groupName=platform.flanksource.com

Jump to

Keyboard shortcuts

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