summaryrefslogtreecommitdiff
path: root/charts/deckhand/values.yaml
blob: 363bc884b19980b6e4436654189c905ec44b63d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
# Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# This file provides defaults for deckhand

labels:
  api:
    node_selector_key: ucp-control-plane
    node_selector_value: enabled
  job:
    node_selector_key: ucp-control-plane
    node_selector_value: enabled
  test:
    node_selector_key: ucp-control-plane
    node_selector_value: enabled

images:
  tags:
    deckhand: quay.io/attcomdev/deckhand:latest
    dep_check: "quay.io/stackanetes/kubernetes-entrypoint:v0.3.1"
    db_init: docker.io/postgres:9.5
    db_sync: quay.io/attcomdev/deckhand:latest
    image_repo_sync: docker.io/docker:17.07.0
    ks_endpoints: docker.io/openstackhelm/heat:newton
    ks_service: docker.io/openstackhelm/heat:newton
    ks_user: docker.io/openstackhelm/heat:newton
  pull_policy: "IfNotPresent"
  local_registry:
    active: false
    exclude:
      - dep_check
      - image_repo_sync

release_group: null

network:
  api:
    ingress:
      public: true
      classes:
        namespace: "nginx"
        cluster: "nginx-cluster"
      annotations:
        nginx.ingress.kubernetes.io/rewrite-target: /
    node_port:
      enabled: false
      port: 301902

dependencies:
  dynamic:
    common:
      local_image_registry:
        jobs:
          - glance-image-repo-sync
        services:
          - endpoint: node
            service: local_image_registry
  static:
    db_init:
      services:
      - service: postgresql
        endpoint: internal
    db_sync:
      jobs:
      - deckhand-db-init
      services:
      - service: postgresql
        endpoint: internal
    ks_user:
      services:
      - service: identity
        endpoint: internal
    ks_service:
      services:
      - service: identity
        endpoint: internal
    ks_endpoints:
      jobs:
      - deckhand-ks-service
      services:
      - service: identity
        endpoint: internal
    deckhand:
      jobs:
      - deckhand-ks-endpoints
      - deckhand-ks-user
      - deckhand-ks-endpoints
      services:
      - service: identity
        endpoint: internal
      - service: key_manager
        endpoint: internal

# typically overridden by environmental
# values, but should include all endpoints
# required by this chart
endpoints:
  cluster_domain_suffix: cluster.local
  local_image_registry:
    name: docker-registry
    namespace: docker-registry
    hosts:
      default: localhost
      internal: docker-registry
      node: localhost
    host_fqdn_override:
      default: null
    port:
      registry:
        node: 5000
  identity:
    name: keystone
    auth:
      deckhand:
        region_name: RegionOne
        role: admin
        project_name: service
        project_domain_name: default
        user_domain_name: default
        username: deckhand
        password: password
      admin:
        region_name: RegionOne
        project_name: admin
        password: password
        username: admin
        user_domain_name: default
        project_domain_name: default
    hosts:
      default: keystone-api
      public: keystone
    path:
      default: /v3
    scheme:
      default: http
    port:
      admin:
        default: 35357
      api:
        default: 80
    host_fqdn_override:
      default: null
  deckhand:
    name: deckhand
    hosts:
      default: deckhand-int
      public: deckhand-api
    port:
      api:
        default: 9000
        public: 80
    path:
      default: /api/v1.0
    scheme:
      default: http
    host_fqdn_override:
      default: null
  postgresql:
    name: postgresql
    auth:
      admin:
        username: postgres
        password: password
      user:
        username: deckhand
        password: password
        database: deckhand
    hosts:
      default: postgresql
    path: /deckhand
    scheme: postgresql+psycopg2
    port:
      postgresql:
        default: 5432
    host_fqdn_override:
      default: null
  key_manager:
    name: barbican
    hosts:
      default: barbican-api
      public: barbican
    host_fqdn_override:
      default: null
    path:
      default: /v1
    scheme:
      default: http
    port:
      api:
        default: 9311
        public: 80
  oslo_cache:
    hosts:
      default: memcached
    host_fqdn_override:
      default: null
    port:
      memcache:
        default: 11211

secrets:
  identity:
    admin: deckhand-keystone-admin
    deckhand: deckhand-keystone-user
  postgresql:
    admin: deckhand-db-admin
    user: deckhand-db-user

conf:
  uwsgi:
    # NOTE(fmontei): Deckhand's database is not configured to work with
    # multiprocessing. Currently there is a data race on acquiring shared
    # SQLAlchemy engine pooled connection strings when workers > 1. As a
    # workaround, we use multiple threads but only 1 worker. For more
    # information, see: https://github.com/att-comdev/deckhand/issues/20
    threads: 4
    workers: 1
  policy:
    admin_api: role:admin
    deckhand:create_cleartext_documents: rule:admin_api
    deckhand:create_encrypted_documents: rule:admin_api
    deckhand:list_cleartext_documents: rule:admin_api
    deckhand:list_encrypted_documents: rule:admin_api
    deckhand:show_revision: rule:admin_api
    deckhand:list_revisions: rule:admin_api
    deckhand:delete_revisions: rule:admin_api
    deckhand:show_revision_diff: rule:admin_api
    deckhand:create_tag: rule:admin_api
    deckhand:show_tag: rule:admin_api
    deckhand:list_tags: rule:admin_api
    deckhand:delete_tag: rule:admin_api
    deckhand:delete_tags: rule:admin_api
  paste:
    filter:authtoken:
      paste.filter_factory: keystonemiddleware.auth_token:filter_factory
    filter:debug:
      use: egg:oslo.middleware#debug
    filter:cors:
      paste.filter_factory: oslo_middleware.cors:filter_factory
      oslo_config_project: deckhand
    filter:request_id:
      paste.filter_factory: oslo_middleware:RequestId.factory
    app:api:
      paste.app_factory: deckhand.service:deckhand_app_factory
    pipeline:deckhand_api:
      pipeline: authtoken api
  deckhand:
    DEFAULT:
      debug: true
      use_stderr: true
      use_syslog: true
      profiler: false
    database:
      connection:
    keystone_authtoken:
      delay_auth_decision: true
      auth_type: password
      auth_version: v3
      memcache_security_strategy: ENCRYPT
    oslo_policy:
      policy_file: policy.yaml
      policy_default_rule: default
      policy_dirs: policy.d
    barbican:
      api_endpoint:
  logging:
    loggers:
      keys: 'root, deckhand, error'
    handlers:
      keys: 'null, stderr, stdout, syslog'
    formatters:
      keys: 'simple, context'
    logger_deckhand:
      level: DEBUG
      handlers: stdout
      qualname: deckhand
    logger_error:
      level: ERROR
      handlers: stderr
      qualname: deckhand
    logger_root:
      level: WARNING
      handlers: null
    handler_null:
      class: 'logging.NullHandler'
      formatter: context
      args: '()'
    handler_stderr:
      class: StreamHandler
      args: '(sys.stderr,)'
      formatter: context
    handler_stdout:
      class: StreamHandler
      args: '(sys.stdout,)'
      formatter: context
    handler_syslog:
      class: 'handlers.SysLogHandler'
      level: ERROR
      args: "('/dev/log', handlers.SysLogHandler.LOG_USER)"
    formatter_context:
      class: 'oslo_log.formatters.ContextFormatter'
    formatter_simple:
      format: "%(asctime)s.%(msecs)03d %(process)d %(levelname)s: %(message)s"
pod:
  mounts:
    deckhand_db_init:
      init_container: null
      deckhand_db_init:
    deckhand_db_sync:
      init_container: null
      deckhand_db_sync:
    deckhand:
      init_container: null
      deckhand:
  lifecycle:
    upgrades:
      deployments:
        revision_history: 3
        pod_replacement_strategy: RollingUpdate
        rolling_update:
          max_unavailable: 1
          max_surge: 3
    termination_grace_period:
      deckhand:
        timeout: 30
  replicas:
    deckhand: 1
  resources:
    enabled: false
    api:
      limits:
        memory: "128Mi"
        cpu: "100m"
      requests:
        memory: "128Mi"
        cpu: "100m"
    jobs:
      ks_user:
        limits:
          memory: "128Mi"
          cpu: "100m"
        requests:
          memory: "128Mi"
          cpu: "100m"
      ks_service:
        limits:
          memory: "128Mi"
          cpu: "100m"
        requests:
          memory: "128Mi"
          cpu: "100m"
      ks_endpoints:
        limits:
          memory: "128Mi"
          cpu: "100m"
        requests:
          memory: "128Mi"
          cpu: "100m"
    test:
      deckhand:
        limits:
          memory: "128Mi"
          cpu: "100m"
        requests:
          memory: "128Mi"
          cpu: "100m"
manifests:
  configmap_bin: true
  configmap_etc: true
  deployment: true
  ingress_api: true
  job_db_init: true
  job_db_sync: true
  job_image_repo_sync: true
  job_ks_endpoints: true
  job_ks_service: true
  job_ks_user: true
  secret_db: true
  secret_keystone: true
  service_api: true
  service_ingress_api: true
  test_deckhand_api: true