---
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: "/"