Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding busybox image override #550

Open
wants to merge 1 commit into
base: 4.1.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions advanced/am-pattern-1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ If you do not have an active WSO2 subscription, **do not change** the parameters
| `wso2.deployment.am.imageName` | Name of the Docker image to be used to create API Manager instances | `wso2am` |
| `wso2.deployment.am.imageTag` | Tag of the image used to create API Manager instances | 4.1.0 |
| `wso2.deployment.am.imagePullPolicy` | Refer to [doc](https://kubernetes.io/docs/concepts/containers/images#updating-images) | `Always` |
| `wso2.deployment.am.busyboxImageName` | Name of the Docker image to be used to run the init containers | `busybox` |
| `wso2.deployment.am.busyboxImageTag` | Tag of the init container image used | 1.32 |
| `wso2.deployment.am.livenessProbe.initialDelaySeconds` | Initial delay for the live-ness probe for API Manager node | 180 |
| `wso2.deployment.am.livenessProbe.periodSeconds` | Period of the live-ness probe for API Manager node | 10 |
| `wso2.deployment.am.readinessProbe.initialDelaySeconds` | Initial delay for the readiness probe for API Manager node | 180 |
Expand Down Expand Up @@ -279,6 +281,8 @@ If you do not have an active WSO2 subscription, **do not change** the parameters
| `wso2.deployment.mi.imageName` | Name of the Docker image to be used to create API Manager instances | `wso2mi` |
| `wso2.deployment.mi.imageTag` | Tag of the image used to create API Manager instances | 4.1.0 |
| `wso2.deployment.mi.imagePullPolicy` | Refer to [doc](https://kubernetes.io/docs/concepts/containers/images#updating-images) | `Always` |
| `wso2.deployment.mi.busyboxImageName` | Name of the Docker image to be used to run the init containers | `busybox` |
| `wso2.deployment.mi.busyboxImageTag` | Tag of the init container image used | 1.32 |
| `wso2.deployment.mi.livenessProbe.initialDelaySeconds` | Initial delay for the live-ness probe for Micro Integrator node | 35 |
| `wso2.deployment.mi.livenessProbe.periodSeconds` | Period of the live-ness probe for Micro Integrator node | 10 |
| `wso2.deployment.mi.readinessProbe.initialDelaySeconds` | Initial delay for the readiness probe for Micro Integrator node | 35 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ spec:
initContainers:
{{ if .Values.wso2.deployment.dependencies.mysql }}
- name: init-mysql-db
image: busybox:1.32
image: {{ .Values.wso2.deployment.am.busyboxImageName }}:{{ .Values.wso2.deployment.am.busyboxImageTag }}
command: ['sh', '-c', 'echo -e "Checking for the availability of MySQL Server deployment"; while ! nc -z "wso2am-mysql-db-service" 3306; do sleep 1; printf "-"; done; echo -e " >> MySQL Server has started";']
- name: init-mysql-connector-download
image: busybox:1.32
image: {{ .Values.wso2.deployment.am.busyboxImageName }}:{{ .Values.wso2.deployment.am.busyboxImageTag }}
command:
- /bin/sh
- "-c"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ spec:
initContainers:
{{ if .Values.wso2.deployment.dependencies.mysql }}
- name: init-mysql-db
image: busybox:1.32
image: {{ .Values.wso2.deployment.am.busyboxImageName }}:{{ .Values.wso2.deployment.am.busyboxImageTag }}
command: ['sh', '-c', 'echo -e "Checking for the availability of MySQL Server deployment"; while ! nc -z "wso2am-mysql-db-service" 3306; do sleep 1; printf "-"; done; echo -e " >> MySQL Server has started";']
- name: init-mysql-connector-download
image: busybox:1.32
image: {{ .Values.wso2.deployment.am.busyboxImageName }}:{{ .Values.wso2.deployment.am.busyboxImageTag }}
command:
- /bin/sh
- "-c"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
spec:
initContainers:
- name: init-am
image: busybox:1.32
image: {{ .Values.wso2.deployment.mi.busyboxImageName }}:{{ .Values.wso2.deployment.mi.busyboxImageTag }}
command: ['sh', '-c', 'echo -e "Checking for the availability of API Manager deployment"; while ! nc -z {{ template "am-pattern-1.resource.prefix" . }}-am-service 9443; do sleep 1; printf "-"; done; echo -e " >> API Manager has started";']
containers:
- name: wso2micro-integrator
Expand Down
7 changes: 7 additions & 0 deletions advanced/am-pattern-1/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ wso2:
# Refer to the Kubernetes documentation on updating images (https://kubernetes.io/docs/concepts/containers/images/#updating-images)
imagePullPolicy: Always

busyboxImageName: "busybox"
busyboxImageTag: "1.32"

# Indicates whether the container is running
livenessProbe:
# Number of seconds after the container has started before liveness probes are initiated
Expand Down Expand Up @@ -137,6 +140,10 @@ wso2:
# dockerRegistry: ""
imageName: "wso2mi"
imageTag: "4.1.0"

busyboxImageName: "busybox"
busyboxImageTag: "1.32"

# Number of deployment replicas
replicas: 2
strategy:
Expand Down
6 changes: 6 additions & 0 deletions advanced/am-pattern-2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ If you do not have an active WSO2 subscription, **do not change** the parameters
| `am-pattern-1.wso2.deployment.am.imageName` | Name of the Docker image to be used to create API Manager instances | `wso2am` |
| `am-pattern-1.wso2.deployment.am.imageTag` | Tag of the image used to create API Manager instances | 4.1.0 |
| `am-pattern-1.wso2.deployment.am.imagePullPolicy` | Refer to [doc](https://kubernetes.io/docs/concepts/containers/images#updating-images) | `Always` |
| `am-pattern-1.wso2.deployment.am.busyboxImageName` | Name of the Docker image to be used to run the init containers | `busybox` |
| `am-pattern-1.wso2.deployment.am.busyboxImageTag` | Tag of the init container image used | 1.32 |
| `am-pattern-1.wso2.deployment.am.livenessProbe.initialDelaySeconds` | Initial delay for the live-ness probe for API Manager node | 180 |
| `am-pattern-1.wso2.deployment.am.livenessProbe.periodSeconds` | Period of the live-ness probe for API Manager node | 10 |
| `am-pattern-1.wso2.deployment.am.readinessProbe.initialDelaySeconds` | Initial delay for the readiness probe for API Manager node | 180 |
Expand Down Expand Up @@ -311,6 +313,8 @@ If you do not have an active WSO2 subscription, **do not change** the parameters
| `am-pattern-1.wso2.deployment.mi.imageName` | Name of the Docker image to be used to create API Manager instances | `wso2mi` |
| `am-pattern-1.wso2.deployment.mi.imageTag` | Tag of the image used to create API Manager instances | 4.1.0 |
| `am-pattern-1.wso2.deployment.mi.imagePullPolicy` | Refer to [doc](https://kubernetes.io/docs/concepts/containers/images#updating-images) | `Always` |
| `am-pattern-1.wso2.deployment.am.busyboxImageName` | Name of the Docker image to be used to run the init containers | `busybox` |
| `am-pattern-1.wso2.deployment.am.busyboxImageTag` | Tag of the init container image used | 1.32 |
| `am-pattern-1.wso2.deployment.mi.livenessProbe.initialDelaySeconds` | Initial delay for the live-ness probe for Micro Integrator node | 35 |
| `am-pattern-1.wso2.deployment.mi.livenessProbe.periodSeconds` | Period of the live-ness probe for Micro Integrator node | 10 |
| `am-pattern-1.wso2.deployment.mi.readinessProbe.initialDelaySeconds` | Initial delay for the readiness probe for Micro Integrator node | 35 |
Expand All @@ -331,6 +335,8 @@ If you do not have an active WSO2 subscription, **do not change** the parameters
| `wso2.deployment.mi.imageName` | Name of the Docker image to be used to create API Manager instances | `wso2mi` |
| `wso2.deployment.mi.imageTag` | Tag of the image used to create API Manager instances | 4.1.0 |
| `wso2.deployment.mi.imagePullPolicy` | Refer to [doc](https://kubernetes.io/docs/concepts/containers/images#updating-images) | `Always` |
| `wso2.deployment.mi.busyboxImageName` | Name of the Docker image to be used to run the init containers | `busybox` |
| `wso2.deployment.mi.busyboxImageTag` | Tag of the init container image used | 1.32 |
| `wso2.deployment.mi.livenessProbe.initialDelaySeconds` | Initial delay for the live-ness probe for Micro Integrator node | 35 |
| `wso2.deployment.mi.livenessProbe.periodSeconds` | Period of the live-ness probe for Micro Integrator node | 10 |
| `wso2.deployment.mi.readinessProbe.initialDelaySeconds` | Initial delay for the readiness probe for Micro Integrator node | 35 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
spec:
initContainers:
- name: init-am
image: busybox:1.32
image: {{ .Values.wso2.deployment.mi.busyboxImageName }}:{{ .Values.wso2.deployment.mi.busyboxImageTag }}
command: ['sh', '-c', 'echo -e "Checking for the availability of API Manager deployment"; while ! nc -z {{ template "am-pattern-1.resource.prefix" . }}-am-service 9443; do sleep 1; printf "-"; done; echo -e " >> API Manager has started";']
containers:
- name: wso2micro-integrator
Expand Down
11 changes: 11 additions & 0 deletions advanced/am-pattern-2/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ wso2:
# dockerRegistry: ""
imageName: "wso2mi"
imageTag: "4.1.0"

busyboxImageName: "busybox"
busyboxImageTag: "1.32"

# Number of deployment replicas
replicas: 2
strategy:
Expand Down Expand Up @@ -132,6 +136,9 @@ am-pattern-1:
# Refer to the Kubernetes documentation on updating images (https://kubernetes.io/docs/concepts/containers/images/#updating-images)
imagePullPolicy: Always

busyboxImageName: "busybox"
busyboxImageTag: "1.32"

# Indicates whether the container is running
livenessProbe:
# Number of seconds after the container has started before liveness probes are initiated
Expand Down Expand Up @@ -206,6 +213,10 @@ am-pattern-1:
# dockerRegistry: ""
imageName: "wso2mi"
imageTag: "4.1.0"

busyboxImageName: "busybox"
busyboxImageTag: "1.32"

# Number of deployment replicas
replicas: 2
strategy:
Expand Down
4 changes: 4 additions & 0 deletions advanced/am-pattern-3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ If you do not have an active WSO2 subscription, **do not change** the parameters
| `wso2.deployment.am.imageName` | Name of the Docker image to be used to create API Manager instances | `wso2am` |
| `wso2.deployment.am.imageTag` | Tag of the image used to create API Manager instances | 4.1.0 |
| `wso2.deployment.am.imagePullPolicy` | Refer to [doc](https://kubernetes.io/docs/concepts/containers/images#updating-images) | `Always` |
| `wso2.deployment.am.busyboxImageName` | Name of the Docker image to be used to run the init containers | `busybox` |
| `wso2.deployment.am.busyboxImageTag` | Tag of the init container image used | 1.32 |
| `wso2.deployment.am.resources.requests.memory` | The minimum amount of memory that should be allocated for running API Manager product profiles with profile optimization | 1Gi |
| `wso2.deployment.am.resources.requests.cpu` | The minimum amount of CPU that should be allocated for running API Manager product profiles with profile optimization | 1000m |
| `wso2.deployment.am.resources.limits.memory` | The maximum amount of memory that should be allocated for running API Manager product profiles with profile optimization | 2Gi |
Expand Down Expand Up @@ -288,6 +290,8 @@ If you do not have an active WSO2 subscription, **do not change** the parameters
| `wso2.deployment.mi.imageName` | Name of the Docker image to be used to create API Manager instances | `wso2mi` |
| `wso2.deployment.mi.imageTag` | Tag of the image used to create API Manager instances | 4.1.0 |
| `wso2.deployment.mi.imagePullPolicy` | Refer to [doc](https://kubernetes.io/docs/concepts/containers/images#updating-images) | `Always` |
| `wso2.deployment.mi.busyboxImageName` | Name of the Docker image to be used to run the init containers | `busybox` |
| `wso2.deployment.mi.busyboxImageTag` | Tag of the init container image used | 1.32 |
| `wso2.deployment.mi.livenessProbe.initialDelaySeconds` | Initial delay for the live-ness probe for Micro Integrator node | 35 |
| `wso2.deployment.mi.livenessProbe.periodSeconds` | Period of the live-ness probe for Micro Integrator node | 10 |
| `wso2.deployment.mi.readinessProbe.initialDelaySeconds` | Initial delay for the readiness probe for Micro Integrator node | 35 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ spec:
initContainers:
{{ if .Values.wso2.deployment.dependencies.mysql }}
- name: init-mysql-db
image: busybox:1.32
image: {{ .Values.wso2.deployment.am.busyboxImageName }}:{{ .Values.wso2.deployment.am.busyboxImageTag }}
command: ['sh', '-c', 'echo -e "Checking for the availability of MySQL Server deployment"; while ! nc -z "wso2am-mysql-db-service" 3306; do sleep 1; printf "-"; done; echo -e " >> MySQL Server has started";']
- name: init-mysql-connector-download
image: busybox:1.32
image: {{ .Values.wso2.deployment.am.busyboxImageName }}:{{ .Values.wso2.deployment.am.busyboxImageTag }}
command:
- /bin/sh
- "-c"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ spec:
initContainers:
{{ if .Values.wso2.deployment.dependencies.mysql }}
- name: init-mysql-db
image: busybox:1.32
image: {{ .Values.wso2.deployment.am.busyboxImageName }}:{{ .Values.wso2.deployment.am.busyboxImageTag }}
command: ['sh', '-c', 'echo -e "Checking for the availability of MySQL Server deployment"; while ! nc -z "wso2am-mysql-db-service" 3306; do sleep 1; printf "-"; done; echo -e " >> MySQL Server has started";']
- name: init-mysql-connector-download
image: busybox:1.32
image: {{ .Values.wso2.deployment.am.busyboxImageName }}:{{ .Values.wso2.deployment.am.busyboxImageTag }}
command:
- /bin/sh
- "-c"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
spec:
initContainers:
- name: init-cp
image: busybox:1.32
image: {{ .Values.wso2.deployment.am.busyboxImageName }}:{{ .Values.wso2.deployment.am.busyboxImageTag }}
command: ['sh', '-c', 'echo -e "Checking for the availability of Control Plane deployment"; while ! nc -z {{ template "am-pattern-3.resource.prefix" . }}-am-cp-service 9443; do sleep 1; printf "-"; done; echo -e " >> Control Plane has started";']
containers:
- name: wso2am-gateway
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ spec:
spec:
initContainers:
- name: init-cp
image: busybox:1.32
image: {{ .Values.wso2.deployment.mi.busyboxImageName }}:{{ .Values.wso2.deployment.mi.busyboxImageTag }}
command: ['sh', '-c', 'echo -e "Checking for the availability of Control Plane deployment"; while ! nc -z {{ template "am-pattern-3.resource.prefix" . }}-am-cp-service 9443; do sleep 1; printf "-"; done; echo -e " >> Control Plane has started";']
- name: init-gw
image: busybox:1.32
image: {{ .Values.wso2.deployment.mi.busyboxImageName }}:{{ .Values.wso2.deployment.mi.busyboxImageTag }}
command: ['sh', '-c', 'echo -e "Checking for the availability of Gateway deployment"; while ! nc -z {{ template "am-pattern-3.resource.prefix" . }}-am-gateway-service 8243; do sleep 1; printf "-"; done; echo -e " >> Gateway has started";']
containers:
- name: wso2micro-integrator
Expand Down
Loading