how to run shell commands in wp-cli kubernetes job to configure wordpress container?
问题 Job yaml file for the wp-cli commands in the wordpress helm chart folder: {{ if and .Release.IsInstall .Values.job.autoCreateCluster }} apiVersion: batch/v1 kind: Job metadata: name: "{{ .Release.Name }}" labels: app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io/instance: {{ .Release.Name | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion }} helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" annotations: # This is what defines this resource as a hook.