---
deployments:
- apiVersion: "apps/v1beta1"
kind: "Deployment"
metadata:
annotations:
nameserver: "false"
labels:
system_serviceUnit: "{{.nameserver}}"
system_workload: "{{.nameserver}}"
ownerName: "{{.user}}"
system_ingress: "{{.nameserver}}"
system_namespace: "{{.namespaces}}"
system_cluster: "{{.paascluster}}"
name: "{{.nameserver}}"
namespace: "{{.namespaces}}"
spec:
replicas: 1
template:
metadata:
labels:
system_serviceUnit: "{{.nameserver}}"
system_workload: "{{.nameserver}}"
ownerName: "{{.user}}"
system_ingress: "{{.nameserver}}"
system_namespace: "{{.namespaces}}"
system_cluster: "{{.paascluster}}"
spec:
containers:
- env:
- name: "nameserver_profile"
value: "{{.nameserver}}"
- name: "nameserver_hostname1"
value: "nameserver1"
- name: "nameserver_hostname2"
value: "nameserver2"
- name: "nameserver_hostname3"
value: "nameserver3"
- name: "JAVA_OPTS"
value: "-Xms3g -Xmx3g -XX:+PrintFlagsFinal -XX:+UnlockDiagnosticVMOptions\
\ -XX:NewRatio=2 -XX:ParallelGCThreads=2 -XX:CICompilerCount=2 -XX:+UseParNewGC\
\ -XX:+UseConcMarkSweepGC -XX:InitialCodeCacheSize=128m -XX:ReservedCodeCacheSize=256m\
\ -XX:MinMetaspaceFreeRatio=20 -XX:MaxMetaspaceFreeRatio=80 -XX:MetaspaceSize=512m\
\ -XX:MaxMetaspaceSize=768m -XX:CompressedClassSpaceSize=256m -XX:MaxDirectMemorySize=256M\
\ -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps\
\ -Xloggc:/usr/local/gc.txt -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCApplicationConcurrentTime\
\ -XX:+PrintSafepointStatistics -XX:PrintSafepointStatisticsCount=1\
\ -XX:+LogVMOutput -XX:LogFile=/usr/local/vm.txt -XX:-UseBiasedLocking\
\ -XX:+LogCompilation -XX:+SafepointTimeout -XX:SafepointTimeoutDelay=500"
- name: "shtelpaas_app_ip"
valueFrom:
fieldRef:
fieldPath: "status.podIP"
image: "hub.paas/base/nameserver:1.3"
imagePullPolicy: "Always"
livenessProbe:
httpGet:
path: "health"
port: 8761
initialDelaySeconds: 120
periodSeconds: 60
timeoutSeconds: 10
name: "nameserver"
resources:
limits:
memory: "4096.00Mi"
cpu: "4000.00m"
requests:
memory: "512.00Mi"
cpu: "500.00m"
volumeMounts:
- mountPath: "/usr/local/nameserver-service/log"
name: "app-log-nameserver"
readOnly: false
- env:
- name: "CE_CLUSTER_NAME"
value: "{{.paascluster}}"
- name: "CE_NAMESPACE_NAME"
value: "{{.namespaces}}"
- name: "CE_WORKLOAD_NAME"
value: "{{.nameserver}}"
- name: "CE_SERVICE_NAME"
value: "{{.nameserver}}"
- name: "CE_LOG_PATH"
value: "/usr/local/nameserver-service/log/*.log"
- name: "CE_LOG_SERVER_ADDR"
value: "10.145.216.133:6230,10.145.216.134:6230,10.145.216.135:6230"
- name: "DISABLE_DATE_MULTILINE"
value: "1"
image: "hub.paas/paas/filebeat:0.6"
imagePullPolicy: "Always"
name: "file-beat"
resources:
limits:
memory: "200Mi"
cpu: "0.05"
requests:
memory: "40Mi"
cpu: "0.01"
volumeMounts:
- mountPath: "/usr/local/nameserver-service/log"
name: "app-log-nameserver"
readOnly: false
volumes:
- name: "app-log-nameserver"
workLoadParam:
id: 5296
kind: "WorkLoad"
name: "nameserver1"
clusterNameSpace: "ie-eop-sys"
physicsClusterName: "{{.paascluster}}
serviceMonitors:
nameserver1: false
serviceUnitParams:
- name: "{{.nameserver}}"
services:
- apiVersion: "v1"
kind: "Service"
metadata:
labels:
system_serviceUnit: "{{.nameserver}}"
system_workload: "{{.nameserver}}"
system_ingress: "{{.nameserver}}"
system_cluster: "{{.paascluster}}"
ownerName: "{{.user}}"
system_namespace: "{{.namespaces}}"
name: "{{.nameserver}}"
spec:
ports:
- name: "{{.nameserver}}"
port: 8761
protocol: "TCP"
targetPort: 8761
selector:
system_serviceUnit: "{{.nameserver}}"
system_workload: "{{.nameserver}}"
system_ingress: "{{.nameserver}}"
system_cluster: "{{.paascluster}}"
ownerName: "{{.user}}"
system_namespace: "{{.namespaces}}"
ingresses:
- apiVersion: "extensions/v1beta1"
kind: "Ingress"
metadata:
labels:
system_serviceUnit: "{{.nameserver}}"
system_workload: "{{.nameserver}}"
system_ingress: "{{.nameserver}}"
system_cluster: "{{.paascluster}}"
ownerName: "{{.user}}"
system_namespace: "{{.namespaces}}"
name: "{{.nameserver}}"
spec:
rules:
- host: "{{.nameserver}}.{{.enging}}.{{.env}}.com"
http:
paths:
- backend:
serviceName: "{{.nameserver}}"
servicePort: 8761
path: "/"

nameserver的更多相关文章

  1. RocketMQ源码 — 二、 NameServer

    NameServer 作用:Producer和Consumer获取Broker的地址 目的:解耦Broker和Producer.Consumer 原理:使用netty作为通信工具,监听指定端口,如果是 ...

  2. MQ NameServer模块划分

    上图是之前讨论确定的系统架构(后续内容会按照这个架构来叙述),其中: NameServer做Broker的服务发现,即客户端可以通过NameServer拿到Broker的信息 Broker汇报数据到N ...

  3. Centos6.9下RocketMQ3.4.6高可用集群部署记录(双主双从+Nameserver+Console)

    之前的文章已对RocketMQ做了详细介绍,这里就不再赘述了,下面是本人在测试和生产环境下RocketMQ3.4.6高可用集群的部署手册,在此分享下: 1) 基础环境 ip地址 主机名 角色 192. ...

  4. RocketMQ NameServer

    NameServer  路由管理,服务注册,服务发现.(类比为soa框架中的zookeeper) 一.路由管理 1.路由注册,由 Broker 向 NameServer 发送心跳,NameServer ...

  5. Linux-HA实战(3)— 基于Pacemaker搭建TFS Nameserver HA

    上篇文章简单介绍了下基于Heartbeat的虚拟IP配置,个人觉得简单易用已经能够应付大部分场景了.但是既然花时间研究HA,如果仅限于一个虚拟IP飘来飘去未免有点糊弄任务了,因此这篇文章打算介绍下基于 ...

  6. Linux-HA实战(2)— TFS Nameserver HA之虚拟IP

    对TFS的Nameserver做机器级别的HA通过虚拟IP机制就可以了,只需要一个Heartbeat就可以搞定,下面简单说下步骤. 操作系统:CentOS 6.4 x86_64 Heartbeat: ...

  7. 修改RocketMQ的NameServer端口

    ---问题--- 有同事提出各个问题:如何修改RocketMQ的NameServer端口号?(默认:9876) ---结论--- 调查并验证之后,结论及过程如下: 验证版本:rocketmq-all- ...

  8. RocketMQ之NameServer学习笔记

    org.apache.rocketmq.namesrv.NamesrvController NameserController,NameServer的核心控制类. 1.1 NamesrvConfig ...

  9. RocketMQ读书笔记4——NameServer(MQ的协调者)

    [NameServer简述] 对于一个消息队列集群来说,系统由很多机器组成,每个机器的角色.IP地址都不相同,而且这些信息是变动的(如在某些情况下,会有新的Producer或Consumer加入). ...

  10. 解决debian 9 重启nameserver失效问题

    目录 解决debian 9 重启nameserver失效问题 安装resolvconf 编辑文件 测试 解决debian 9 重启nameserver失效问题 刚安装完debian9,用过之后会发现/ ...

随机推荐

  1. flask框架(七)——蓝图、请求上下文、g对象、信号、flask_session

    蓝图 作用:对程序进行目录结构划分 不使用蓝图情况下,自己分文件 目录结构: -templates -views -__init__.py -user.py -order.py -app.py app ...

  2. 使用VMware安装Mac OS的综合整理教程(你要的这里都有……)

    最近打算使用vmware安装Mac系统,听说安装Mac系统是非常繁琐的,经过几番尝试确实如此,所以写下此教程来更完整地讲解能够成功安装mac的步骤,那么废话不多说. 本次教程整合于多个网上教程,但如果 ...

  3. linux maven 安装

    1.使用wget命令下载maven安装包 wget https://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.6.2/binaries/a ...

  4. 判断密码是否可见/判断登录的状态/判断在form表单中 定义rules规则验证(iview)

    一: 判断密码是否可见判断:type="visiblePassword ? 'text' : 'password'" 是否为false 或者 true 密码为输入框或者文本框点击眼 ...

  5. PXC增量恢复添加节点(IST)

    绕开SST通过IST方式添加Node到Percona XtraDB Cluster  Gcache存储了所有的  writeset ,因此说这个集合的大小直接决定了允许其他节点宕机后多长时间内可以进行 ...

  6. C#使用共享内存与C++进行数据交互

    现在做桌面的不多了.前端太流行了,大家都去搞前端了. 需求如下: 上层UI使用C#开发,数据采集模块使用C++开发.数据采集模块采集到的数据比较大,上层需要接收这一块数据并显示 进程间通信的方式有多种 ...

  7. java web编程 servlet2

    一般在开发的过程中主要用一个doGet和doPost方法, http就是超文本传输协议,这是java API对servlet的描述 : 一般我们调用的方法细则如下 : service一分为二reque ...

  8. 【hadoop】hadoop3.2.0的安装并测试

    前言:前段时间将hadoop01的虚拟机弄的崩溃掉了,也没有备份,重新从hadoop02虚拟上克隆过来的,结果hadoop-eclipse插件一样的编译,居然用不起了,找了3天的原因,最后还是没有解决 ...

  9. springboot2.1.3+spring-session2.1.4分库处理

    使用spring session框架来统一管理session,该框架支持jdbc.redis存储,使用非常简单,可以去官网查看文档一步步接入即可,官网文档如下:https://docs.spring. ...

  10. Linux主机之间传输文件的几种方法对比

    1.scp传输 scp -r /data/file root@ip:/data/ scp -C /data/sda.img root@ip:/data/img/#-r: 支持目录#-C: 启用压缩传送 ...