Containerpilot 配置文件模板

{  "consul": "{{ .CONSUL }}:8500",  "logging": {    "level": "INFO",    "format": "default",    "output": "stdout"  },  "jobs": [    {      "name": ‘{{ .SERVICE_NAME|default "app"}}‘,      "exec": "/root/test/containerpilot/app.sh",      "when":{        "source":"prestart",        "once":"exitSuccess",        "timeout":"60s"      },      "restarts": "unlimited",      "port": 80,      "health": {        "exec": "/root/test/containerpilot/manage.sh health",        "interval": 5,        "ttl": 10,        "timeout": "5s"      },      "tags": [        "app",        "prod"      ],      "interfaces":["enp3s0:inet"]    },    {      "name": "prestart",      "exec": "/root/test/containerpilot/manage.sh prestart",      "restarts": "never"    },    {      "name": "backup_task",      "exec": "/root/test/containerpilot/manage.sh backup",      "timeout": "1m",      "when": {        "interval": "1500ms"      }    }  ]}===========================================================================[[email protected] containerpilot]# lsapp.sh  a.sh  containerpilot.json  manage.sh[[email protected] containerpilot]# export CONSUL=hahaha[[email protected] containerpilot]# containerpilot -config ./containerpilot.json -template{  "consul": "hahaha:8500",  "logging": {    "level": "INFO",    "format": "default",    "output": "stdout"  },  "jobs": [    {      "name": ‘app‘,      "exec": "/root/test/containerpilot/app.sh",      "when":{        "source":"prestart",        "once":"exitSuccess",        "timeout":"60s"      },      "restarts": "unlimited",      "port": 80,      "health": {        "exec": "/root/test/containerpilot/manage.sh health",        "interval": 5,        "ttl": 10,        "timeout": "5s"      },      "tags": [        "app",        "prod"      ],      "interfaces":["enp3s0:inet"]    },    {      "name": "prestart",      "exec": "/root/test/containerpilot/manage.sh prestart",      "restarts": "never"    },    {      "name": "backup_task",      "exec": "/root/test/containerpilot/manage.sh backup",      "timeout": "1m",      "when": {        "interval": "1500ms"      }    }  ]}
时间: 2024-10-31 08:37:40

Containerpilot 配置文件模板的相关文章

Nginx 配置文件模板

user www www; worker_processes 2; error_log /usr/local/nginx/logs/nginx_error.log crit; pid /usr/local/nginx/logs/nginx.pid; #Specifies the value for maximum file descriptors that can be opened by this process. worker_rlimit_nofile 51200; events { us

ssh框架中spring整合hibernate的配置文件模板(带详细注释)

applicationContext.xml的配置文件模板 1 <?xml version="1.0" encoding="UTF-8"?> 2 <beans 3 xmlns="http://www.springframework.org/schema/beans" 4 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 5 xmlns:aop=&quo

apache主配置文件模板和基于域名虚拟主机配置文件模板

1,主配置文件模板 # cat  httpd.conf ServerRoot "/usr/local/apache" Listen 80 LoadModule authn_file_module modules/mod_authn_file.so LoadModule authn_core_module modules/mod_authn_core.so LoadModule authz_host_module modules/mod_authz_host.so LoadModule 

Spring boot 通用配置文件模板

001 # ===================================================================002 # COMMON SPRING BOOT PROPERTIES003 #004 # This sample file is provided as a guideline. Do NOT copy it in its005 # entirety to your own application.               ^^^006 # ==

hibernate.cfg.xml配置文件和hbm.xml配置文件 模板

hibernate.cfg.xml配置文件格式 <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration

Struts2配置文件模板

<?xml version = "1.0" encoding = "UTF-8"?><!--下面是Struts2配置文件的DTD信息 --><!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd

Spring配置文件模板

模板: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org

hibernate.cfg.xml hibernate 配置文件模板

<?xml version='1.0' encoding='UTF-8'?> <!--表明解析本XML文件的DTD文档位置,DTD是Document Type Definition 的缩写,即文档类型的定义,XML解析器使用DTD文档来检查XML文件的合法性.hibernate.sourceforge.net/hibernate-configuration-3.0dtd可以在Hibernate3.1.3软件包中的src\org\hibernate目录中找到此文件--> <!D

spring各个配置文件模板,持续更新

pom.xml <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <!--spring 版本 --> <spring.version>4.3.14.RELEASE</spring.version> <!--mysql连接器版本 --> <mysql.version>6.0.6</mysql.ver