1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- apiVersion: batch/v1
- kind: Job
- metadata:
- name: grpc-example-client
- namespace: prd
- spec:
- backoffLimit: 4
- completions: 1
- parallelism: 1
- template:
- spec:
- containers:
- - env:
- - name: PATH
- value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/sbin:/opt/go-example
- - name: LANG
- value: zh_CN.UTF-8
- image: ccr.ccs.tencentyun.com/wanpinghui/go-example-client:1582972748
- name: grpc-example-client
- workingDir: /opt/go-example
- imagePullSecrets:
- - name: qcloudregistrykey
- - name: tencenthubkey
- restartPolicy: Never
- # 改变pod hosts文件,与containers同级,对ingress-nginx代理gRPC无效
- # hostAliases:
- # - ip: "10.7.255.164"
- # hostnames:
- # - "example.wanpinghui.com"
- # - "gw.wanpinghui.com"
- # 挂载证书,与containers同级
- # volumeMounts:
- # - mountPath: /opt/go-example/ex_tls.crt
- # name: ex-wph-secret
- # readOnly: true
- # subPath: ex_tls.crt
- # - mountPath: /opt/go-example/gw_tls.crt
- # name: gw-wph-secret
- # readOnly: true
- # subPath: gw_tls.crt
- # volumes:
- # - name: ex-wph-secret
- # secret:
- # defaultMode: 420
- # items:
- # - key: tls.crt
- # mode: 420
- # path: ex_tls.crt
- # secretName: ex-wph-secret
- # - name: gw-wph-secret
- # secret:
- # defaultMode: 420
- # items:
- # - key: tls.crt
- # mode: 420
- # path: gw_tls.crt
- # secretName: gw-wph-secret
|