#!/bin/bash for i in $(ls ./baseImage_yamls/启动ES和kibana/初始化ES索引/es_index/); do setting=$(cat ./baseImage_yamls/启动ES和kibana/初始化ES索引/es_index/$i) #30092 是k8s的es-service 的nodePort curl -H "Content-Type: application/json" -XPUT "http://localhost:30092/$i" -d "$setting" done