Skip to content

custom configurations for decapod-base-yaml and decapod-flow

License

Notifications You must be signed in to change notification settings

openinfradev/decapod-site

Repository files navigation

decapod-site

This repository contains custom configurations for decapod-base-yaml and decapod-flow.

Documents

Make your own site

$ ./create_site.sh site_name
Cloning into '.base-yaml'...
remote: Enumerating objects: 146, done.
remote: Counting objects: 100% (146/146), done.
remote: Compressing objects: 100% (106/106), done.
remote: Total 533 (delta 54), reused 101 (delta 29), pack-reused 387
Receiving objects: 100% (533/533), 187.43 KiB | 2.53 MiB/s, done.
Resolving deltas: 100% (186/186), done.
$ ls site_name
admin-tools   cloud-console lma           openstack     service-mesh

Example

base(1) + site(2) => variant(3)

  1. decapod-base-yaml/lma/base/resources.yaml:

    apiVersion: helm.fluxcd.io/v1
    kind: HelmRelease
    metadata:
    name: elasticsearch-operator
    spec:
    chart:
       repository: https://openinfradev.github.io/helm-repo
       name: elasticsearch-operator
       version: 1.0.3
    releaseName: elasticsearch-operator
    targetNamespace: elastic-system
    values:
       elasticsearchOperator:
          nodeSelector: {} # TO_BE_FIXED
  2. decapod-site/{your site name}/lma/site-values.yaml:

    apiVersion: openinfradev.github.com/v1
    kind: HelmValuesTransformer
    metadata:
    name: site
    
    global:
    nodeSelector:
       taco-lma: enabled
    
    charts:
    - name: elasticsearch-operator
    override:
       elasticsearchOperator.nodeSelector: $(nodeSelector)
  3. decapod-site/{your site name}/lma/lma-manifest.yaml:

    apiVersion: helm.fluxcd.io/v1
    kind: HelmRelease
    metadata:
    name: elasticsearch-operator
    spec:
    chart:
       repository: https://openinfradev.github.io/helm-repo
       name: elasticsearch-operator
       version: 1.0.3
    releaseName: elasticsearch-operator
    targetNamespace: elastic-system
    values:
       elasticsearchOperator:
          nodeSelector:
          taco-lma: enabled