Skip to content

Commit

Permalink
chore: support oracle readinessProbe (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
1aal authored Nov 29, 2023
1 parent 1575611 commit 5ebad53
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions addons/oracle/templates/clusterdefinition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
spec:
type: oracle
connectionCredential:
username: kbadmin
username: sys
password: "$(RANDOM_PASSWD)"
endpoint: "$(SVC_FQDN):$(SVC_PORT_tcp-oracle)"
host: "$(SVC_FQDN)"
Expand All @@ -33,7 +33,7 @@ spec:
fsGroup: 103
runAsGroup: 103
containers:
- name: oracle
- name: oracle
volumeMounts:
- mountPath: /opt/oracle/oradata
name: data
Expand Down Expand Up @@ -61,6 +61,14 @@ spec:
- name: INIT_PROCESSES
- name: ORACLE_EDITION
value: "enterprise"
readinessProbe:
failureThreshold: 3
initialDelaySeconds: 10
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 5
exec:
command: [ "/bin/sh", "-c", "if [ -f $ORACLE_BASE/checkDBLockStatus.sh ]; then $ORACLE_BASE/checkDBLockStatus.sh ; else $ORACLE_BASE/checkDBStatus.sh; fi " ]
volumes:
- name: dshm
emptyDir:
Expand Down
2 changes: 1 addition & 1 deletion addons/oracle/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ replicaCount: 1

image:
registry: docker.io
repository: 941102297/oracle
repository: apecloud/oracle
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: 19.3.0-ee
Expand Down

0 comments on commit 5ebad53

Please sign in to comment.