Skip to content

Instantly share code, notes, and snippets.

@blaggacao
Last active September 28, 2018 13:00
Show Gist options
  • Save blaggacao/b2d69c23d9e2ff52ca619308bf387219 to your computer and use it in GitHub Desktop.
Save blaggacao/b2d69c23d9e2ff52ca619308bf387219 to your computer and use it in GitHub Desktop.
Odoo-Operator Dev Onboarding

Prerequisites

Step by step

gotchas incorporated

  • git clone https://github.com/xoe-labs/odoo-operator && cd odoo-operator
  • kubectl create -f deploy/examples/namespace.yaml, if you use rancher, you want to move that namespace manually to the Default project
  • Review config kubectl config view
  • Verify current context kubectl config current-context
  • Set namespaced context kubectl config set-context odoo-ctx --namespace=odoo
  • Use it kubectl config use-context odoo-ctx
  • kubectl create -f deploy/crd.yaml
  • kubectl create -f deploy/rbac.yaml
  • kubectl create -f deploy/examples/pv.yaml
  • Resolve the TODO in nano deploy/examples/ext-db-service.yaml
  • kubectl create -f deploy/examples/ext-db-service.yaml
  • export WATCH_NAMESPACE=odoo
  • operator-sdk up local
  • In another terminal: kubectl create -f deploy/examples/odoocluster.yaml

Rancher does not support appsv1 api yet (only some beta apis), so to get full visibility into your deployments, complete this challenge: https://gist.github.com/superseb/3a9c0d2e4a60afa3689badb1297e2a44 and you will see again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment