Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
approval-process
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
market
approval-process
Commits
cf009de3
Commit
cf009de3
authored
Aug 28, 2023
by
徐泽意
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新pg及redis
parent
9a6721a8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
122 additions
and
0 deletions
+122
-0
charts/postgresql/templates/configmap.yaml
charts/postgresql/templates/configmap.yaml
+9
-0
charts/postgresql/templates/service.yaml
charts/postgresql/templates/service.yaml
+13
-0
charts/postgresql/templates/statefulset.yaml
charts/postgresql/templates/statefulset.yaml
+87
-0
charts/redis/templates/svc.yaml
charts/redis/templates/svc.yaml
+13
-0
No files found.
charts/postgresql/templates/configmap.yaml
0 → 100644
View file @
cf009de3
apiVersion
:
v1
kind
:
ConfigMap
metadata
:
name
:
postgresql-config
namespace
:
{{
.Release.Namespace
}}
data
:
POSTGRES_DB
:
postgres
POSTGRES_PASSWORD
:
{{
.Values.POSTGRES_PASSWORD
}}
POSTGRES_USER
:
postgres
charts/postgresql/templates/service.yaml
0 → 100644
View file @
cf009de3
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
postgresql
namespace
:
{{
.Release.Namespace
}}
spec
:
ports
:
-
port
:
5432
protocol
:
TCP
targetPort
:
5432
selector
:
app
:
postgresql
sessionAffinity
:
None
charts/postgresql/templates/statefulset.yaml
0 → 100644
View file @
cf009de3
apiVersion
:
apps/v1
kind
:
StatefulSet
metadata
:
name
:
postgresql
namespace
:
{{
.Release.Namespace
}}
spec
:
replicas
:
1
selector
:
matchLabels
:
app
:
postgresql
serviceName
:
"
"
template
:
metadata
:
labels
:
app
:
postgresql
spec
:
initContainers
:
-
name
:
lost-found
{{
- if contains "/" .Values.image.repository
}}
image
:
"
{{
.Values.initImage.repository
}}:{{
.Values.initImage.tag
}}"
{{
- else
}}
image
:
"
{{
.Values.global.hub
}}/{{
.Values.initImage.repository
}}:{{
.Values.initImage.tag
}}{{
template
"beagle.imageArch" . }}"
{{
- end
}}
command
:
-
rm
-
'
-Rf'
-
/var/lib/postgresql/data/lost+found
resources
:
{}
volumeMounts
:
-
name
:
data
mountPath
:
/var/lib/postgresql/data
-
name
:
init-data
{{
- if contains "/" .Values.image.repository
}}
image
:
"
{{
.Values.initImage.repository
}}:{{
.Values.initImage.tag
}}"
{{
- else
}}
image
:
"
{{
.Values.global.hub
}}/{{
.Values.initImage.repository
}}:{{
.Values.initImage.tag
}}{{
template
"beagle.imageArch" . }}"
{{
- end
}}
command
:
-
chown
-
'
-R'
-
'
999:999'
-
/var/lib/postgresql/data
resources
:
{}
volumeMounts
:
-
name
:
data
mountPath
:
/var/lib/postgresql/data
containers
:
-
envFrom
:
-
configMapRef
:
name
:
postgresql-config
{{
- if contains "/" .Values.image.repository
}}
image
:
"
{{
.Values.image.repository
}}:{{
.Values.image.tag
}}"
{{
- else
}}
image
:
"
{{
.Values.global.hub
}}/{{
.Values.image.repository
}}:{{
.Values.image.tag
}}{{
template
"beagle.imageArch" . }}"
{{
- end
}}
imagePullPolicy
:
"
{{
.Values.global.imagePullPolicy
}}"
name
:
data
ports
:
-
containerPort
:
5432
protocol
:
TCP
volumeMounts
:
-
mountPath
:
/var/lib/postgresql/data
name
:
data
-
mountPath
:
/etc/localtime
name
:
localtime
restartPolicy
:
Always
volumes
:
-
hostPath
:
path
:
/etc/localtime
type
:
"
"
name
:
localtime
volumeClaimTemplates
:
-
apiVersion
:
v1
kind
:
PersistentVolumeClaim
metadata
:
labels
:
app
:
postgresql
name
:
data
spec
:
accessModes
:
-
ReadWriteOnce
resources
:
requests
:
storage
:
10Gi
storageClassName
:
{{
.Values.storageClassName
}}
volumeMode
:
Filesystem
charts/redis/templates/svc.yaml
0 → 100644
View file @
cf009de3
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
redis
namespace
:
{{
.Release.Namespace
}}
spec
:
ports
:
-
port
:
6379
protocol
:
TCP
targetPort
:
6379
selector
:
app
:
redis
sessionAffinity
:
None
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment