thermo-center-controller

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2020 License: MIT Imports: 9 Imported by: 0

README

thermo-center-controller

Kubernetes controller for Thermo-Center.

Deployment

Deploy the Custom Resource Definition:

$ kubectl apply -f https://raw.githubusercontent.com/rkojedzinszky/thermo-center-controller/master/config/crd/kojedz.in_thermocenters.yaml

Then, create a dedicated namespace for Thermo-Center:

$ kubectl create ns thermo-center

Deploy the operator:

$ kubectl -n thermo-center apply -f https://raw.githubusercontent.com/rkojedzinszky/thermo-center-controller/master/config/rbac/role.yaml \
  -f https://raw.githubusercontent.com/rkojedzinszky/thermo-center-controller/master/deploy/service_account.yaml \
  -f https://raw.githubusercontent.com/rkojedzinszky/thermo-center-controller/master/deploy/role_binding.yaml \
  -f https://raw.githubusercontent.com/rkojedzinszky/thermo-center-controller/master/deploy/controller.yaml

Now the operator is up and running.

Follow setup instructions here to have a working radio module. Also prepare an empty PostgreSQL database. Then, deploy thermo-center customizing the following CRD:

apiVersion: kojedz.in/v1alpha1
kind: ThermoCenter
metadata:
  name: thermo-center
spec:
  database:
    host: postgres.db
    name: thermo-center
    password: thermo-center-password
    port: 5432
    user: thermo-center
  ingress:
    hostNames:
    - your.domain.name
  replicas: 1
  version: 3.3.1

Apply it, and then, create a superuser as:

$ ns=thermo-center; kubectl -n $ns exec -it $(kubectl -n $ns get pod -l thermo-center-component=api --template '{{(index .items 0).metadata.name}}') -- python manage.py createsuperuser

Then you will be able to access your installation at http://your.domain.name .

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 contains API Schema definitions for the kojedz.in v1alpha1 API group +kubebuilder:object:generate=true +groupName=kojedz.in
Package v1alpha1 contains API Schema definitions for the kojedz.in v1alpha1 API group +kubebuilder:object:generate=true +groupName=kojedz.in

Jump to

Keyboard shortcuts

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