You need to sign in or sign up before continuing.
Commit eb33013d authored by YINAN's avatar YINAN

update

parents
apiVersion: v1
name: beagle-oracle-xe-11g
version: 1.0.0
appVersion: 11g
description: oracle Database
\ No newline at end of file
# mysql
oracle Database
\ No newline at end of file
logo.png

11.9 KB

configInfo:
- name: image
text: 镜像
type: text
value: "hub.wodcloud.com:10080/public/oracle-xe"
- name: tag
text: 版本
type: radio
value: ["11g"]
- name: storageSpec.volumeClaimTemplate.spec.storageClassName
text: 存储类
type: radio
value: ["rook-ceph-block"]
- name: storageSpec.volumeClaimTemplate.spec.resources.requests.storage
text: 存储容量
type: text
value: "5Gi"
\ No newline at end of file
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "oracle.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/* Helm required labels */}}
{{- define "oracle.labels" -}}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
{{- end -}}
{{/* matchLabels */}}
{{- define "oracle.matchLabels" -}}
release: {{ .Release.Name }}
{{- end -}}
\ No newline at end of file
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}
namespace: {{ .Release.Namespace }}
labels:
{{ include "oracle.labels" . | indent 4 }}
app: oracle
spec:
ports:
- name: oracle
port: 1521
selector:
{{ include "oracle.matchLabels" . | indent 4 }}
app: oracle
\ No newline at end of file
apiVersion: apps/v1beta2
kind: StatefulSet
metadata:
name: {{ .Release.Name }}
namespace: {{ .Release.Namespace }}
labels:
{{ include "oracle.labels" . | indent 4 }}
app: oracle
version: "{{ .Values.tag }}"
spec:
replicas: 1
serviceName: {{ .Release.Name }}
selector:
matchLabels:
{{ include "oracle.matchLabels" . | indent 6 }}
app: oracle
template:
metadata:
labels:
{{ include "oracle.labels" . | indent 8 }}
app: oracle
version: "{{ .Values.tag }}"
spec:
nodeSelector:
{{ toYaml $.Values.nodeSelector | indent 8 }}
initContainers:
- name: "remove-lost-found"
image: {{ .Values.busybox.image }}:{{ .Values.busybox.tag }}
command: ["rm", "-Rf", "/u01/app/oracle/lost+found"]
volumeMounts:
- name: data
mountPath: /u01/app/oracle
- name: init-data
image: {{ .Values.busybox.image }}:{{ .Values.busybox.tag }}
command:
- "chown"
- "-R"
- "999:999"
- "/u01/app/oracle"
volumeMounts:
- name: data
mountPath: /u01/app/oracle
containers:
- name: oracle
image: "{{ .Values.image }}:{{ .Values.tag }}"
imagePullPolicy: IfNotPresent
ports:
- containerPort: 1521
volumeMounts:
- name: data
mountPath: /u01/app/oracle
- name: localtime
mountPath: /etc/localtime
volumes:
- name: localtime
hostPath:
path: /etc/localtime
{{- if .Values.storageSpec.hostPath }}
- name: data
hostPath:
{{ toYaml $.Values.storageSpec.hostPath | indent 10 }}
{{- else if .Values.storageSpec.volumeClaimTemplate }}
volumeClaimTemplates:
- metadata:
name: "data"
labels:
{{ include "oracle.labels" . | indent 8 }}
app: {{ .Release.Name }}
spec:
{{ toYaml $.Values.storageSpec.volumeClaimTemplate.spec | indent 6 }}
{{- else }}
- name: data
emptyDir: {}
{{- end }}
\ No newline at end of file
image: "hub.wodcloud.com:10080/public/oracle-xe"
tag: "11g"
nodeSelector: {}
storageSpec:
volumeClaimTemplate:
spec:
storageClassName: rook-ceph-block
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi
selector: {}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment