逃脱&在Yaml

时间:2017-12-14 01:29:40

标签: json shell kubernetes yaml

我一直在尝试使用kubernetes部署清单&中的"command": ["sh","-c","nohup /bin/ecr-token-refresh \&;sleep 10; exit 0"]来逃避 pod.beta.kubernetes.io/init-containers: '[ { "name": "token-refresh-prestart", "image": "{{ .Values.images.ecrrefresh }}", "command": ["sh","-c","nohup /bin/ecr-refresh-token \&;sleep10; exit 0"] , "volumeMounts": [ { "name": "prod-b-spin-refresh-config", "mountPath": "/opt/config/ecr-token-refresh", "readOnly": false }, { "name": "password-volume", "mountPath": "/opt/passwords", "readOnly": false } ] } ]' 但没有运气。

<router-outlet name="modal"></router-outlet>

2 个答案:

答案 0 :(得分:1)

你可以添加这样的命令。

 products    price
   apple      3.0
   orange     2.5
   avocado    4.0
   banana     2.5
   blueberry  1.5

你有什么理由把它放在后台吗?

答案 1 :(得分:0)

等效于

select 
    to_timestamp( '2017-11-16T04:45:05.000Z', 'yyyy-mm-dd"T"hh24:mi:ss.ff"Z"')
from dual;

TO_TIMESTAMP('2017-11-16T04:4
-----------------------------
2017/11/16 04:45:05.000000000

但问题是,作为清单的一部分,无法在后台运行该过程。如果你手动kc exec进入pod

,你可以这样做