Skip to content

Commit

Permalink
[sophora-seo-check]: minor fixes (#62)
Browse files Browse the repository at this point in the history
* add serviceName, remove init container's restartPolicy, fix sizeLimit typo

* use correct volume claim name
  • Loading branch information
blizzy78 authored Nov 17, 2023
1 parent 74efa6f commit 4e9112d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/sophora-seo-check/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: sophora-seo-check
description: Sophora SEO Check
type: application
version: 1.0.0
version: 1.0.1
appVersion: 4.12.0
8 changes: 4 additions & 4 deletions charts/sophora-seo-check/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ spec:
selector:
matchLabels:
{{- include "sophora-seo-check.selectorLabels" . | nindent 6 }}
serviceName: {{ include "sophora-seo-check.fullname" . }}
template:
metadata:
annotations:
Expand All @@ -27,7 +28,6 @@ spec:
- name: seo-check-init
image: docker.subshell.com/sophora/seocheck-k8s-init:latest
imagePullPolicy: IfNotPresent
restartPolicy: Always
env:
- name: GOOGLE_STORAGE_BASE_URI
value: {{ .Values.seoCheck.init.googleStorageBaseURI }}
Expand All @@ -42,7 +42,7 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
volumeMounts:
- name: persistent-data
- name: {{ include "sophora-seo-check.fullname" . }}-persistent-data
mountPath: /data
- name: config
mountPath: /data/config
Expand Down Expand Up @@ -93,10 +93,10 @@ spec:
secretName: {{ include "sophora-seo-check.fullname" . }}-init-gcp-credentials
- name: data
emptyDir:
sizelimit: {{ .Values.storage.dataSize }}
sizeLimit: {{ .Values.storage.dataSize }}
volumeClaimTemplates:
- metadata:
name: persistent-data
name: {{ include "sophora-seo-check.fullname" . }}-persistent-data
spec:
accessModes:
- ReadWriteOnce
Expand Down

0 comments on commit 4e9112d

Please sign in to comment.