运行命令时:helm install singer --dry-run packages/helm-chart/charts/csm-im
在下图中,args
根本没有设置。为什么?
值.yaml:
spec:
template:
spec:
containers:
- args:
- node
- -r
- ./.pnp.cjs
- packages/csm-im/dist/src/index.js
模板/statefulset.yaml:
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
meta.helm.sh/release-name: {{ .Release.Name }}
meta.helm.sh/release-namespace: {{ .Release.Namespace }}
field.cattle.io/publicEndpoints: '[{"addresses":[""],"port":443,"protocol":"HTTPS","serviceName":"default:csm-im","ingressName":"default:singer-csm-im","hostname":"singer-csm-im.octopol.io","path":"/","allNodes":false}]'
labels:
app.kubernetes.io/managed-by: Helm
cattle.io/creator: norman
workload.user.cattle.io/workloadselector: statefulSet-default-csm-im
name: csm-im
namespace: {{ .Release.Namespace }}
spec:
podManagementPolicy: OrderedReady
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
workload.user.cattle.io/workloadselector: statefulSet-default-csm-im
serviceName: csm-im
template:
metadata:
annotations:
field.cattle.io/ports: '[[{"containerPort":8080,"dnsName":"csm-im","hostPort":0,"kind":"ClusterIP","name":"tcpport01","protocol":"TCP","sourcePort":0}]]'
labels:
workload.user.cattle.io/workloadselector: statefulSet-default-csm-im
spec:
containers:
- env:
- name: RESEARCH_ENABLE_CALL
value: 'false'
image: image1
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
httpGet:
path: /
port: 8080
scheme: HTTP
initialDelaySeconds: 20
periodSeconds: 2
successThreshold: 1
timeoutSeconds: 2
name: csm-im
ports:
- containerPort: 8080
name: tcpport01
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /readiness
port: 8080
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 2
successThreshold: 2
timeoutSeconds: 2
resources: {}
securityContext:
allowPrivilegeEscalation: false
capabilities: {}
privileged: false
readOnlyRootFilesystem: false
runAsNonRoot: false
stdin: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
tty: true
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: octopol-dockerhub-credentials
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
updateStrategy:
rollingUpdate:
partition: 0
type: RollingUpdate