-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* XEN-2322 add ooi deployment * XEN-2322 add ooi deployment fix discussion
- Loading branch information
1 parent
d5f6aa5
commit 1e57041
Showing
8 changed files
with
208 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{- if .Values.ooi.enabled -}} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: ooi-configmap | ||
namespace: {{ .Release.Namespace | quote }} | ||
labels: | ||
app: ooi | ||
data: | ||
JAVA_OPTS: "-Xms256m -Xmx512m -Dalfresco.base-url={{ .Values.ingress.protocol }}://{{ .Values.ingress.host }}" | ||
{{- if .Values.ooi.additionalEnvironmentVariables }} | ||
{{ toYaml .Values.ooi.additionalEnvironmentVariables | nindent 2 }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{{- if .Values.ooi.enabled -}} | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: ooi | ||
namespace: {{ .Release.Namespace | quote }} | ||
annotations: | ||
{{- include "globalPodAnnotations" . | indent 4 }} | ||
{{- if .Values.ooi.podAnnotations }} | ||
{{ toYaml .Values.ooi.podAnnotations | nindent 4 }} | ||
{{- end }} | ||
labels: | ||
app: ooi | ||
spec: | ||
replicas: {{ .Values.ooi.replicaCount }} | ||
selector: | ||
matchLabels: | ||
app: ooi | ||
strategy: | ||
{{- if eq .Values.ooi.strategy.type "Recreate" }} | ||
type: {{ .Values.ooi.strategy.type }} | ||
{{- else }} | ||
{{ toYaml .Values.general.strategy | nindent 4 }} | ||
{{- end }} | ||
{{- if .Values.ooi.serviceAccount }} | ||
serviceAccountName: {{ .Values.ooi.serviceAccount }} | ||
{{- end }} | ||
template: | ||
metadata: | ||
labels: | ||
app: ooi | ||
spec: | ||
containers: | ||
- name: ooi-container | ||
image: {{ .Values.ooi.image.repository }} | ||
imagePullPolicy: {{ .Values.ooi.image.pullPolicy | default "IfNotPresent" }} | ||
livenessProbe: | ||
tcpSocket: | ||
port: 9095 | ||
failureThreshold: 1 | ||
initialDelaySeconds: 10 | ||
periodSeconds: 20 | ||
successThreshold: 1 | ||
timeoutSeconds: 10 | ||
readinessProbe: | ||
tcpSocket: | ||
port: 9095 | ||
failureThreshold: 1 | ||
initialDelaySeconds: 20 | ||
periodSeconds: 60 | ||
successThreshold: 1 | ||
timeoutSeconds: 10 | ||
envFrom: | ||
- configMapRef: | ||
name: ooi-configmap | ||
ports: | ||
- containerPort: 9095 | ||
protocol: TCP | ||
{{- if or (.Values.ooi.resources.requests) ((.Values.ooi.resources.limits)) }} | ||
resources: | ||
{{- if .Values.ooi.resources.requests }} | ||
requests: | ||
{{ toYaml .Values.ooi.resources.requests | nindent 14 }} | ||
{{- end }} | ||
{{- if .Values.ooi.resources.limits }} | ||
limits: | ||
{{ toYaml .Values.ooi.resources.limits | nindent 14 }} | ||
{{- end }} | ||
{{- end }} | ||
imagePullSecrets: | ||
- name: alfrescocred | ||
{{- if .Values.general.imagePullSecrets}} | ||
{{ toYaml .Values.general.imagePullSecrets | nindent 8 }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{{- if .Values.ooi.enabled -}} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: ooi-service | ||
namespace: {{ .Release.Namespace | quote }} | ||
spec: | ||
selector: | ||
app: ooi | ||
ports: | ||
- protocol: TCP | ||
port: 30500 | ||
targetPort: 9095 | ||
{{- if .Values.general.serviceType }} | ||
type: {{ .Values.general.serviceType }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters