Skip to content

Commit

Permalink
Merge pull request #370 from carbonin/add_optional_pull_secret
Browse files Browse the repository at this point in the history
Add IMAGE_PULL_SECRET parameter
  • Loading branch information
Fryguy authored Feb 20, 2020
2 parents ceada13 + 05c892c commit 36f3915
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
3 changes: 3 additions & 0 deletions parameters
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ HTTPD_IMAGE_TAG=latest
HTTPD_MEM_LIMIT=8192Mi
HTTPD_MEM_REQ=512Mi

# Image pull secret to use for the orchestrator and worker images
#IMAGE_PULL_SECRET=

# memcached pod deployment information
MEMCACHED_CPU_REQ=200m
MEMCACHED_IMAGE_NAME=manageiq/memcached
Expand Down
18 changes: 12 additions & 6 deletions templates/app/orchestrator.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apiVersion: v1
kind: Template
metadata:
name: "${APP_NAME}-orchestrator"
name: orchestrator
objects:
- apiVersion: apps/v1
kind: Deployment
metadata:
name: "${APP_NAME}-orchestrator"
name: orchestrator
labels:
app: "${APP_NAME}"
spec:
Expand All @@ -15,15 +15,15 @@ objects:
replicas: 1
selector:
matchLabels:
name: "${APP_NAME}-orchestrator"
name: orchestrator
template:
metadata:
name: "${APP_NAME}-orchestrator"
name: orchestrator
labels:
name: "${APP_NAME}-orchestrator"
name: orchestrator
spec:
containers:
- name: "${APP_NAME}-orchestrator"
- name: orchestrator
image: "${ORCHESTRATOR_IMAGE_NAMESPACE}/${ORCHESTRATOR_IMAGE_NAME}:${ORCHESTRATOR_IMAGE_TAG}"
livenessProbe:
exec:
Expand Down Expand Up @@ -75,12 +75,16 @@ objects:
key: encryption-key
- name: CONTAINER_IMAGE_NAMESPACE
value: "${ORCHESTRATOR_IMAGE_NAMESPACE}"
- name: IMAGE_PULL_SECRET
value: "${IMAGE_PULL_SECRET}"
resources:
requests:
memory: "${ORCHESTRATOR_MEM_REQ}"
cpu: "${ORCHESTRATOR_CPU_REQ}"
limits:
memory: "${ORCHESTRATOR_MEM_LIMIT}"
imagePullSecrets:
- name: "${IMAGE_PULL_SECRET}"
serviceAccountName: "${APP_NAME}-orchestrator"
terminationGracePeriodSeconds: 90
parameters:
Expand All @@ -93,6 +97,8 @@ parameters:
- name: GUID
from: "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
generate: expression
- name: IMAGE_PULL_SECRET
value: ''
- name: ORCHESTRATOR_IMAGE_NAMESPACE
value: manageiq
- name: ORCHESTRATOR_IMAGE_NAME
Expand Down

0 comments on commit 36f3915

Please sign in to comment.