使用 cat 方式修改文件内容
命令: cat << EOF > 文件名称
root@noway-587f65cd54-767sk:~/noway# cat << EOF > ingress.yaml> apiVersion: extensions/v1beta1kind: Ingressmetadata:name: nginx-service-ingressannotations:kubernetes.io/ingress.class: "nginx"spec:rules:- host: {company}.test4u.cnhttp:paths:- path:backend:serviceName: {company}-system-edge-ui-appservicePort: 80>> EOFroot@noway-587f65cd54-767sk:~/noway#
