Java 中文
环境变量:
1-时间同步
TZ Asia/Shanghai
command: ["tail","-f","/etc/hosts"]
command:
- "tail"
- "-f"
args:
- "/etc/hosts"
对应的界面如下:
tail,-f
/etc/hosts
比如: 睡眠 10分钟
apiVersion: v1
kind: Pod
metadata:
name: image-restart-policy-05
spec:
nodeName: worker232
# 指定容器的重启策略
# restartPolicy: Always
# restartPolicy: Never
restartPolicy: OnFailure
containers:
- name: db
image: harbor.baimei.com/baimei-imagepullpolicy/demo:v1
imagePullPolicy: Always
# 修改容器的运行命令
# command: ["sleep","10"]
command: ["sleep","60"]
在 界面操作如下:
1-redis 启动命令
对应的是
2-elasticsearch-exporter 启动命令
elasticsearch_exporter --es.all --es.indices --es.cluster_settings --es.indices_settings --es.shards --es.snapshots --es.timeout=10s --web.listen-address=":9114" --web.telemetry-path="/metrics" --es.uri="http://123.57.143.145:9200/"
yaml
containers:
- name: container-9o4qq6
image: 'prometheuscommunity/elasticsearch-exporter:v1.5.0'
command:
- /bin/elasticsearch_exporter
- '--es.uri=http://123.57.143.145:9200'
3- kafka-exporter
4- bash -c
spec:
containers:
- args:
- bash
- -c
- /opt/frostmourne/start.sh frostmourne-monitor
这种形式只是 参数 如下
bash,-c,/opt/frostmourne/start.sh frostmourne-monitor