diff --git a/README.md b/README.md index 43e0a4c..a40d438 100644 --- a/README.md +++ b/README.md @@ -172,12 +172,13 @@ services: katenary.v3/ingress: |- hostname: myapp.example.com port: 80 + # make adaptations, DB_HOST environment is actually the service name katenary.v3/map-env: |- - # make adaptations, DB_HOST environment is actually the service name DB_HOST: '{{ .Release.Name }}-database' + # get the values from the "database" service + # this will use the database secrets and environment, + # see the "database" service to see the values katenary.v3/values-from: |- - # get the values from the "database" service - # this will use the databas secret, see below DB_USER: databse.MARIADB_USER DB_PASSWORD: database.MARIADB_PASSWORD diff --git a/generator/labels/katenaryLabelsDoc.yaml b/generator/labels/katenaryLabelsDoc.yaml index 061ff58..9aa7371 100644 --- a/generator/labels/katenaryLabelsDoc.yaml +++ b/generator/labels/katenaryLabelsDoc.yaml @@ -338,9 +338,9 @@ MARIADB_USER: myuser MARIADB_PASSWORD: mypassword labels: - # it can be a secret + # we can declare secrets {{ .KatenaryPrefix }}/secrets: |- - - DB_PASSWORD + - MARIADB_PASSWORD php: image: php:7.4-fpm environment: