Commit 65475f11 by 蒋勇

init

parents
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: kubernetes-dashboard
labels:
k8s-app: kubernetes-dashboard
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: kubernetes-dashboard
namespace: kube-system
# Copyright 2017 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Configuration to deploy release version of the Dashboard UI compatible with
# Kubernetes 1.8.
#
# Example usage: kubectl create -f <this_file>
# ------------------- Dashboard Secret ------------------- #
apiVersion: v1
kind: Secret
metadata:
labels:
k8s-app: kubernetes-dashboard
name: kubernetes-dashboard-certs
namespace: kube-system
type: Opaque
---
# ------------------- Dashboard Service Account ------------------- #
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
k8s-app: kubernetes-dashboard
name: kubernetes-dashboard
namespace: kube-system
---
# ------------------- Dashboard Role & Role Binding ------------------- #
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: kubernetes-dashboard-minimal
namespace: kube-system
rules:
# Allow Dashboard to create 'kubernetes-dashboard2-key-holder' secret.
- apiGroups: [""]
resources: ["secrets"]
verbs: ["create"]
# Allow Dashboard to create 'kubernetes-dashboard2-settings' config map.
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["create"]
# Allow Dashboard to get, update and delete Dashboard exclusive secrets.
- apiGroups: [""]
resources: ["secrets"]
resourceNames: ["kubernetes-dashboard-key-holder", "kubernetes-dashboard-certs"]
verbs: ["get", "update", "delete"]
# Allow Dashboard to get and update 'kubernetes-dashboard2-settings' config map.
- apiGroups: [""]
resources: ["configmaps"]
resourceNames: ["kubernetes-dashboard-settings"]
verbs: ["get", "update"]
# Allow Dashboard to get metrics from heapster.
- apiGroups: [""]
resources: ["services"]
resourceNames: ["heapster"]
verbs: ["proxy"]
- apiGroups: [""]
resources: ["services/proxy"]
resourceNames: ["heapster", "http:heapster:", "https:heapster:"]
verbs: ["get"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: kubernetes-dashboard-minimal
namespace: kube-system
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: kubernetes-dashboard-minimal
subjects:
- kind: ServiceAccount
name: kubernetes-dashboard
namespace: kube-system
---
# ------------------- Dashboard Deployment ------------------- #
kind: Deployment
apiVersion: apps/v1beta2
metadata:
labels:
k8s-app: kubernetes-dashboard
name: kubernetes-dashboard
namespace: kube-system
spec:
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
k8s-app: kubernetes-dashboard
template:
metadata:
labels:
k8s-app: kubernetes-dashboard
spec:
containers:
- name: kubernetes-dashboard
image: mirrorgooglecontainers/kubernetes-dashboard-amd64:v1.10.1
ports:
- containerPort: 8443
protocol: TCP
args:
- --auto-generate-certificates
# Uncomment the following line to manually specify Kubernetes API server Host
# If not specified, Dashboard will attempt to auto discover the API server and connect
# to it. Uncomment only if the default does not work.
# - --apiserver-host=http://my-address:port
volumeMounts:
- name: kubernetes-dashboard-certs
mountPath: /certs
# Create on-disk volume to store exec logs
- mountPath: /tmp
name: tmp-volume
livenessProbe:
httpGet:
scheme: HTTPS
path: /
port: 8443
initialDelaySeconds: 30
timeoutSeconds: 30
volumes:
- name: kubernetes-dashboard-certs
secret:
secretName: kubernetes-dashboard-certs
- name: tmp-volume
emptyDir: {}
serviceAccountName: kubernetes-dashboard
# Comment the following tolerations if Dashboard must not be deployed on master
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
---
# ------------------- Dashboard Service ------------------- #
kind: Service
apiVersion: v1
metadata:
labels:
k8s-app: kubernetes-dashboard
name: kubernetes-dashboard
namespace: kube-system
spec:
type: NodePort
ports:
- port: 80
targetPort: 8443
nodePort: 30000
selector:
k8s-app: kubernetes-dashboard
kind: Namespace
apiVersion: v1
metadata:
name: demo-webshell
generateName: demo-webshell
labels:
name: demo-webshell
purpose: Demonstration
annotations:
describe: Just show how to create
status:
phase: ''
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: webshell-ingress
namespace: demo-webshell
spec:
rules:
- host: webshell.com
http:
paths:
- path: /
backend:
serviceName: webshell
servicePort: 80
- path: /ping
backend:
serviceName: webshell
servicePort: 80
---
apiVersion: v1
kind: Service
metadata:
name: webshell
namespace: demo-webshell
spec:
type: ClusterIP
ports:
- name: webshell
port: 80
targetPort: 80
protocol: TCP
- name: ssh
port: 22
targetPort: 22
protocol: TCP
selector:
app: webshell
---
apiVersion: v1
kind: Service
metadata:
name: webshell-nodeport
namespace: demo-webshell
spec:
type: NodePort
ports:
- name: webshell
port: 80
targetPort: 80
protocol: TCP
- name: ssh
port: 22
targetPort: 22
protocol: TCP
selector:
app: webshell
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: webshell
namespace: demo-webshell
spec:
replicas: 1
selector:
matchLabels:
app: webshell
template:
metadata:
labels:
name: webshell
app: webshell
spec:
containers:
- name: webshell
image: lijiaocn/webshell:1.0
resources:
limits:
cpu: 3
memory: 128Mi
requests:
cpu: 0.1
memory: 32Mi
livenessProbe:
tcpSocket:
port: 80
initialDelaySeconds: 5
timeoutSeconds: 5
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
imagePullPolicy: Always
securityContext:
privileged: false
runAsNonRoot: false
stdin: false
stdinOnce: false
tty: false
- name: sshproxy
image: lijiaocn/sshproxy:1.0
env:
- name: ROOTPASS
value: '123456'
resources:
limits:
cpu: 3
memory: 128Mi
requests:
cpu: 0.1
memory: 32Mi
livenessProbe:
tcpSocket:
port: 22
initialDelaySeconds: 5
timeoutSeconds: 5
imagePullPolicy: Always
securityContext:
privileged: false
runAsNonRoot: false
stdin: false
stdinOnce: false
tty: false
restartPolicy: Always
dnsPolicy: Default
serviceAccountName: default
hostNetwork: false
hostPID: false
hostIPC: false
apiVersion: v1
kind: Service
metadata:
name: kong-dashboard
namespace: kong
spec:
type: NodePort
ports:
- name: kong-dashboard
port: 80
targetPort: 8080
protocol: TCP
selector:
app: dashboard
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: dashboard
namespace: kong
spec:
template:
metadata:
labels:
name: dashboard
app: dashboard
spec:
containers:
- name: kong-dashboard
args:
- start
- --kong-url http://kong-proxy:8001
- --basic-auth admin=admin
image: pgbi/kong-dashboard:latest
ports:
- name: http
containerPort: 8080
protocol: TCP
#apiVersion: v1
#kind: Namespace
#metadata:
# name: kong
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: kongconsumers.configuration.konghq.com
spec:
additionalPrinterColumns:
- JSONPath: .username
description: Username of a Kong Consumer
name: Username
type: string
- JSONPath: .metadata.creationTimestamp
description: Age
name: Age
type: date
group: configuration.konghq.com
names:
kind: KongConsumer
plural: kongconsumers
shortNames:
- kc
scope: Namespaced
validation:
openAPIV3Schema:
properties:
credentials:
items:
type: string
type: array
custom_id:
type: string
username:
type: string
version: v1
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: kongcredentials.configuration.konghq.com
spec:
additionalPrinterColumns:
- JSONPath: .type
description: Type of credential
name: Credential-type
type: string
- JSONPath: .metadata.creationTimestamp
description: Age
name: Age
type: date
- JSONPath: .consumerRef
description: Owner of the credential
name: Consumer-Ref
type: string
group: configuration.konghq.com
names:
kind: KongCredential
plural: kongcredentials
scope: Namespaced
validation:
openAPIV3Schema:
properties:
consumerRef:
type: string
type:
type: string
required:
- consumerRef
- type
version: v1
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: kongingresses.configuration.konghq.com
spec:
group: configuration.konghq.com
names:
kind: KongIngress
plural: kongingresses
shortNames:
- ki
scope: Namespaced
validation:
openAPIV3Schema:
properties:
proxy:
properties:
connect_timeout:
minimum: 0
type: integer
path:
pattern: ^/.*$
type: string
protocol:
enum:
- http
- https
- grpc
- grpcs
type: string
read_timeout:
minimum: 0
type: integer
retries:
minimum: 0
type: integer
write_timeout:
minimum: 0
type: integer
type: object
route:
properties:
headers:
additionalProperties:
items:
type: string
type: array
type: object
https_redirect_status_code:
type: integer
methods:
items:
type: string
type: array
preserve_host:
type: boolean
protocols:
items:
enum:
- http
- https
- grpc
- grpcs
type: string
type: array
regex_priority:
type: integer
strip_path:
type: boolean
upstream:
properties:
algorithm:
enum:
- round-robin
- consistent-hashing
- least-connections
type: string
hash_fallback:
type: string
hash_fallback_header:
type: string
hash_on:
type: string
hash_on_cookie:
type: string
hash_on_cookie_path:
type: string
hash_on_header:
type: string
healthchecks:
properties:
active:
properties:
concurrency:
minimum: 1
type: integer
healthy:
properties:
http_statuses:
items:
type: integer
type: array
interval:
minimum: 0
type: integer
successes:
minimum: 0
type: integer
type: object
http_path:
pattern: ^/.*$
type: string
timeout:
minimum: 0
type: integer
unhealthy:
properties:
http_failures:
minimum: 0
type: integer
http_statuses:
items:
type: integer
type: array
interval:
minimum: 0
type: integer
tcp_failures:
minimum: 0
type: integer
timeout:
minimum: 0
type: integer
type: object
type: object
passive:
properties:
healthy:
properties:
http_statuses:
items:
type: integer
type: array
interval:
minimum: 0
type: integer
successes:
minimum: 0
type: integer
type: object
unhealthy:
properties:
http_failures:
minimum: 0
type: integer
http_statuses:
items:
type: integer
type: array
interval:
minimum: 0
type: integer
tcp_failures:
minimum: 0
type: integer
timeout:
minimum: 0
type: integer
type: object
type: object
type: object
slots:
minimum: 10
type: integer
type: object
version: v1
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: kongplugins.configuration.konghq.com
spec:
additionalPrinterColumns:
- JSONPath: .plugin
description: Name of the plugin
name: Plugin-Type
type: string
- JSONPath: .metadata.creationTimestamp
description: Age
name: Age
type: date
- JSONPath: .disabled
description: Indicates if the plugin is disabled
name: Disabled
priority: 1
type: boolean
- JSONPath: .config
description: Configuration of the plugin
name: Config
priority: 1
type: string
group: configuration.konghq.com
names:
kind: KongPlugin
plural: kongplugins
shortNames:
- kp
scope: Namespaced
validation:
openAPIV3Schema:
properties:
config:
type: object
disabled:
type: boolean
plugin:
type: string
protocols:
items:
enum:
- http
- https
- tcp
- tls
type: string
type: array
run_on:
enum:
- first
- second
- all
type: string
required:
- plugin
version: v1
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: kong-serviceaccount
namespace: kong
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: kong-ingress-clusterrole
rules:
- apiGroups:
- ""
resources:
- endpoints
- nodes
- pods
- secrets
verbs:
- list
- watch
- apiGroups:
- ""
resources:
- nodes
verbs:
- get
- apiGroups:
- ""
resources:
- services
verbs:
- get
- list
- watch
- apiGroups:
- networking.k8s.io
- extensions
resources:
- ingresses
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
- apiGroups:
- networking.k8s.io
- extensions
resources:
- ingresses/status
verbs:
- update
- apiGroups:
- configuration.konghq.com
resources:
- kongplugins
- kongcredentials
- kongconsumers
- kongingresses
verbs:
- get
- list
- watch
- apiGroups:
- ""
resourceNames:
- ingress-controller-leader-kong
resources:
- configmaps
verbs:
- get
- update
- apiGroups:
- ""
resources:
- configmaps
verbs:
- create
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: kong-ingress-clusterrole-nisa-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: kong-ingress-clusterrole
subjects:
- kind: ServiceAccount
name: kong-serviceaccount
namespace: kong
---
apiVersion: v1
data:
servers.conf: |
# Prometheus metrics server
server {
server_name kong_prometheus_exporter;
listen 0.0.0.0:9542; # can be any other port as well
access_log off;
location /metrics {
default_type text/plain;
content_by_lua_block {
local prometheus = require "kong.plugins.prometheus.exporter"
prometheus:collect()
}
}
location /nginx_status {
internal;
stub_status;
}
}
# Health check server
server {
server_name kong_health_check;
listen 0.0.0.0:9001; # can be any other port as well
access_log off;
location /health {
return 200;
}
}
kong.yml: |
_format_version: "1.1"
services:
- name: chaolai.igirl-service.80
host: czhd.gongsibao.com
plugins:
- name: prometheus
service: chaolai.igirl-service.80
kind: ConfigMap
metadata:
name: kong-server-blocks
namespace: kong
---
apiVersion: v1
kind: Service
metadata:
annotations:
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp
service.beta.kubernetes.io/aws-load-balancer-type: nlb
name: kong-proxy
namespace: kong
spec:
#externalTrafficPolicy: Local
ports:
- name: proxy
port: 80
protocol: TCP
targetPort: 8000
nodePort: 26981
- name: proxy-ssl
port: 443
protocol: TCP
targetPort: 8443
- name: admin-url
port: 8001
protocol: TCP
targetPort: 8001
- name: promscratch
port: 9542
protocol: TCP
selector:
app: ingress-kong
type: NodePort
---
apiVersion: v1
kind: Service
metadata:
name: kong-validation-webhook
namespace: kong
spec:
ports:
- name: webhook
port: 443
protocol: TCP
targetPort: 8080
selector:
app: ingress-kong
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: ingress-kong
name: ingress-kong
namespace: kong
spec:
replicas: 1
selector:
matchLabels:
app: ingress-kong
template:
metadata:
annotations:
prometheus.io/port: "9542"
prometheus.io/scrape: "true"
traffic.sidecar.istio.io/includeInboundPorts: ""
labels:
app: ingress-kong
spec:
containers:
- env:
- name: KONG_DATABASE
value: "off"
# - name: KONG_DECLARATIVE_CONFIG
# value: /kong/kong.yml
- name: KONG_NGINX_WORKER_PROCESSES
value: "1"
- name: KONG_NGINX_HTTP_INCLUDE
value: /kong/servers.conf
- name: KONG_ADMIN_ACCESS_LOG
value: /dev/stdout
- name: KONG_ADMIN_ERROR_LOG
value: /dev/stderr
- name: KONG_ADMIN_LISTEN
value: 0.0.0.0:8001, 0.0.0.0:8444 ssl
- name: KONG_PROXY_LISTEN
value: 0.0.0.0:8000, 0.0.0.0:8443 ssl http2
image: kong:1.3
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
exec:
command:
- /bin/sh
- -c
- kong quit
livenessProbe:
failureThreshold: 3
httpGet:
path: /health
port: 9001
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
name: proxy
ports:
- containerPort: 8000
name: proxy
protocol: TCP
- containerPort: 8443
name: proxy-ssl
protocol: TCP
- containerPort: 8001
name: admin-url
protocol: TCP
- containerPort: 9542
name: metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /health
port: 9001
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
securityContext:
runAsUser: 1000
volumeMounts:
- mountPath: /kong
name: kong-server-blocks
resources:
requests:
cpu: 100m
memory: 512Mi
limits:
cpu: 500m
memory: 2500Mi
- args:
- /kong-ingress-controller
- --kong-url=https://localhost:8444
- --admin-tls-skip-verify
- --publish-service=kong/kong-proxy
env:
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
image: kong-docker-kubernetes-ingress-controller.bintray.io/kong-ingress-controller:0.6.2
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: 10254
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
name: ingress-controller
ports:
- containerPort: 8080
name: webhook
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: 10254
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
serviceAccountName: kong-serviceaccount
volumes:
- configMap:
name: kong-server-blocks
name: kong-server-blocks
apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
name: prometheus
namespace: kong
labels:
global: "true"
plugin: prometheus
apiVersion: v1
kind: ConfigMap
metadata:
name: zhichan-config
namespace: kong
data:
APP_ENV: prod
DB_HOST: 47.95.76.74
DB_PORT: "3306"
DB_USER: root
DB_PWD: Gongsibao2018
REDIS_HOST: r-2ze60261d9063784.redis.rds.aliyuncs.com
REDIS_PORT: "6379"
REDIS_PWD: Gongsibao2018
PAAS_DB_NAME: paas
PAAS_REDIS_DB: "14"
NODE_PORT: "80"
IGIRL_DB_NAME: igirl
IGIRL_REDIS_DB: "13"
ZC_API_DB_NAME: igirl_zcapi
ZC_API_REDIS_DB: "7"
ZC_CHANNEL_DB_NAME: igirl_channel
ZC_CHANNEL_REDIS_DB: "8"
ZC_CHANNEL_WEB_DB_NAME: demoapp
ZC_CHANNEL_WEB_REDIS_DB: "9"
SCRATCHWEB_DB_NAME: zc
SCRATCHWEB_REDIS_DB: "11"
ALIOP_DB_NAME: alop
ALIOP_REDIS_DB: "10"
BPOWEB_REDIS_DB: "6"
BPOWEB_DB_NAME: bpo
BPOADMIN_REDIS_DB: "6"
BPOADMIN_DB_NAME: bpo
PM_DB_NAME: pmmanage
PM_REDIS_DB: "5"
EMBED_REDIS_DB: "4"
EMBED_DB_NAME: embedapp
XGGADMIN_DB_NAME: xgg
XGGADMIN_REDIS_DB: "6"
XGGWEB_DB_NAME: xgg
XGGWEB_REDIS_DB: "3"
XGGADMIN_DB_NAME: xgg
XGGADMIN_REDIS_DB: "3"
XGGPC_DB_NAME: xgg-pc
XGGPC_REDIS_DB: "3"
XGGSVECOMMON_DB_NAME: xgg-common
XGGSVECOMMON_REDIS_DB: "3"
XGGSVEMERCHANT_DB_NAME: xgg-merchant
XGGSVEMERCHANT_REDIS_DB: "3"
XGGSVEORDER_DB_NAME: xgg-order
XGGSVEORDER_REDIS_DB: "3"
XGGSVEINVOICE_DB_NAME: xgg-invoice
XGGSVEINVOICE_REDIS_DB: "3"
LAOWUBAO_DB_NAME: laowubao
LAOWUBAO_REDIS_DB: "3"
XGGPJB_DB_NAME: xgg
XGGPJB_REDIS_DB: "3"
JIAXIYA_REDIS_DB: "12"
JIAXIYA_DB_NAME: jiaxiya
apiVersion: v1
kind: Service
metadata:
labels:
app: konga
name: konga
namespace: kong
spec:
type: NodePort
ports:
- name: konga
port: 80
targetPort: 1337
selector:
app: konga
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: konga
namespace: kong
labels:
app: konga
spec:
replicas: 1
selector:
matchLabels:
app: konga
template:
metadata:
labels:
name: konga
app: konga
spec:
containers:
- name: konga
image: pantsel/konga
env:
- name: DB_DATABASE
value: k8s_konga
- name: DB_USER
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_USER
- name: DB_PASSWORD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PWD
- name: DB_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PORT
- name: DB_ADAPTER
value: mysql
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_HOST
- name: NODE_ENV
value: development
- name: TOKEN_SECRET
value: testtoken
ports:
- name: konga
containerPort: 1337
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: grafana-show
namespace: kube-system
labels:
app: grafana
component: core
spec:
replicas: 1
template:
metadata:
labels:
app: grafana
component: core
spec:
nodeSelector:
promuth: data
containers:
- image: grafana/grafana
name: grafana-show
imagePullPolicy: IfNotPresent
ports:
- containerPort: 3000
protocol: TCP
name: http
# env:
resources:
# keep request = limit to keep this container in guaranteed class
limits:
cpu: 100m
memory: 100Mi
requests:
cpu: 100m
memory: 100Mi
env:
- name: GF_AUTH_BASIC_ENABLED
value: "true"
- name: GF_AUTH_ANONYMOUS_ENABLED
value: "false"
readinessProbe:
httpGet:
path: /login
port: 3000
volumeMounts:
- name: grafana-persistent-storage
mountPath: /var/lib/grafana
- name: host-time
mountPath: /etc/localtime
volumes:
- name: grafana-persistent-storage
hostPath:
path: /root/grafana
- name: host-time
hostPath:
path: /etc/localtime
---
apiVersion: v1
kind: Service
metadata:
name: grafana
namespace: kube-system
labels:
app: grafana-service
component: core
spec:
type: NodePort
ports:
- port: 3000
targetPort: 3000
selector:
app: grafana
component: core
apiVersion: v1
kind: Service
metadata:
annotations:
prometheus.io/scrape: 'true'
labels:
app: node-exporter
name: node-exporter
name: node-exporter
namespace: kube-system
spec:
clusterIP: None
ports:
- name: scrape
port: 9100
protocol: TCP
selector:
app: node-exporter
type: ClusterIP
---
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: node-exporter
namespace: kube-system
spec:
template:
metadata:
labels:
app: node-exporter
name: node-exporter
spec:
containers:
- image: prom/node-exporter:latest
name: node-exporter
ports:
- containerPort: 9100
hostPort: 9100
name: scrape
hostNetwork: true
hostPID: true
restartPolicy: Always
apiVersion: v1
kind: ServiceAccount
metadata:
name: prometheus
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: prometheus
rules:
- apiGroups:
- ""
resources:
- nodes
- services
- endpoints
- pods
- nodes/proxy
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- configmaps
- nodes/metrics
verbs:
- get
- apiGroups:
- extensions
resources:
- ingresses
verbs: ["get", "list", "watch"]
- nonResourceURLs:
- /metrics
verbs:
- get
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: prometheus
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: prometheus
subjects:
- kind: ServiceAccount
name: prometheus
namespace: kube-system
apiVersion: v1
kind: ConfigMap
metadata:
name: prometheus-config
namespace: kube-system
data:
prometheus.yml: |
global:
scrape_interval: 15s
evaluation_interval: 15s
scrape_configs:
- job_name: 'kubernetes-apiservers'
kubernetes_sd_configs:
- role: endpoints
scheme: https
tls_config:
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
relabel_configs:
- source_labels: [__meta_kubernetes_namespace, __meta_kubernetes_service_name, __meta_kubernetes_endpoint_port_name]
action: keep
regex: default;kubernetes;https
- job_name: 'kubernetes-nodes'
kubernetes_sd_configs:
- role: node
scheme: https
tls_config:
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
relabel_configs:
- action: labelmap
regex: __meta_kubernetes_node_label_(.+)
- target_label: __address__
replacement: kubernetes.default.svc:443
- source_labels: [__meta_kubernetes_node_name]
regex: (.+)
target_label: __metrics_path__
replacement: /api/v1/nodes/${1}/proxy/metrics
- job_name: 'kubernetes-cadvisor'
kubernetes_sd_configs:
- role: node
scheme: https
tls_config:
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
relabel_configs:
- action: labelmap
regex: __meta_kubernetes_node_label_(.+)
- target_label: __address__
replacement: kubernetes.default.svc:443
- source_labels: [__meta_kubernetes_node_name]
regex: (.+)
target_label: __metrics_path__
replacement: /api/v1/nodes/${1}/proxy/metrics/cadvisor
- job_name: 'kubernetes-service-endpoints'
kubernetes_sd_configs:
- role: endpoints
relabel_configs:
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scrape]
action: keep
regex: true
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scheme]
action: replace
target_label: __scheme__
regex: (https?)
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_path]
action: replace
target_label: __metrics_path__
regex: (.+)
- source_labels: [__address__, __meta_kubernetes_service_annotation_prometheus_io_port]
action: replace
target_label: __address__
regex: ([^:]+)(?::\d+)?;(\d+)
replacement: $1:$2
- action: labelmap
regex: __meta_kubernetes_service_label_(.+)
- source_labels: [__meta_kubernetes_namespace]
action: replace
target_label: kubernetes_namespace
- source_labels: [__meta_kubernetes_service_name]
action: replace
target_label: kubernetes_name
- job_name: 'kubernetes-services'
kubernetes_sd_configs:
- role: service
metrics_path: /probe
params:
module: [http_2xx]
relabel_configs:
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_probe]
action: keep
regex: true
- source_labels: [__address__]
target_label: __param_target
- target_label: __address__
replacement: blackbox-exporter.example.com:9115
- source_labels: [__param_target]
target_label: instance
- action: labelmap
regex: __meta_kubernetes_service_label_(.+)
- source_labels: [__meta_kubernetes_namespace]
target_label: kubernetes_namespace
- source_labels: [__meta_kubernetes_service_name]
target_label: kubernetes_name
- job_name: 'kubernetes-ingresses'
kubernetes_sd_configs:
- role: ingress
relabel_configs:
- source_labels: [__meta_kubernetes_ingress_annotation_prometheus_io_probe]
action: keep
regex: true
- source_labels: [__meta_kubernetes_ingress_scheme,__address__,__meta_kubernetes_ingress_path]
regex: (.+);(.+);(.+)
replacement: ${1}://${2}${3}
target_label: __param_target
- target_label: __address__
replacement: blackbox-exporter.example.com:9115
- source_labels: [__param_target]
target_label: instance
- action: labelmap
regex: __meta_kubernetes_ingress_label_(.+)
- source_labels: [__meta_kubernetes_namespace]
target_label: kubernetes_namespace
- source_labels: [__meta_kubernetes_ingress_name]
target_label: kubernetes_name
- job_name: 'kubernetes-pods'
kubernetes_sd_configs:
- role: pod
relabel_configs:
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
action: keep
regex: true
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_path]
action: replace
target_label: __metrics_path__
regex: (.+)
- source_labels: [__address__, __meta_kubernetes_pod_annotation_prometheus_io_port]
action: replace
regex: ([^:]+)(?::\d+)?;(\d+)
replacement: $1:$2
target_label: __address__
- action: labelmap
regex: __meta_kubernetes_pod_label_(.+)
- source_labels: [__meta_kubernetes_namespace]
action: replace
target_label: kubernetes_namespace
- source_labels: [__meta_kubernetes_pod_name]
action: replace
target_label: kubernetes_pod_name
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: prometheus
namespace: kube-system
labels:
app: prometheus
spec:
template:
metadata:
labels:
app: prometheus
spec:
serviceAccountName: prometheus
nodeSelector:
promuth: data
containers:
- image: prom/prometheus:v2.4.3
name: prometheus
command:
- "/bin/prometheus"
args:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--storage.tsdb.retention=7d"
- "--web.enable-admin-api" # 控制对admin HTTP API的访问,其中包括删除时间序列等功能
- "--web.enable-lifecycle" # 支持热更新,直接执行localhost:9090/-/reload立即生效
ports:
- containerPort: 9090
protocol: TCP
name: http
volumeMounts:
- mountPath: "/prometheus"
name: data
- mountPath: "/etc/prometheus"
name: config-volume
- name: date-config
mountPath: /etc/localtime
resources:
requests:
cpu: 100m
memory: 512Mi
limits:
cpu: 500m
memory: 2500Mi
securityContext:
runAsUser: 0
volumes:
- name: data
hostPath:
path: /root/promedata
- configMap:
name: prometheus-config
name: config-volume
- name: date-config
hostPath:
path: /etc/localtime
apiVersion: v1
kind: Service
metadata:
name: prometheus
namespace: kube-system
labels:
app: prometheus
spec:
selector:
app: prometheus
type: NodePort
ports:
- name: web
port: 9090
targetPort: http
nodePort: 11110
apiVersion: v1
kind: Pod
metadata:
name: nginx
labels:
env: test
spec:
containers:
- name: nginx
image: nginx
imagePullPolicy: IfNotPresent
nodeSelector:
promuth: data
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-ingress
namespace: chaolai
spec:
rules:
- host: igirl.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: bpoadmin-ingress
namespace: chaolai
spec:
rules:
- host: bpogsb.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: bpoadmin-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: bpoweb-ingress
namespace: chaolai
spec:
rules:
- host: bpohhr.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: bpoweb-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: bpoent-ingress
namespace: chaolai
spec:
rules:
- host: bpoent.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: bpoweb-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: laowubao-ingress
namespace: chaolai
spec:
rules:
- host: xinguoguo.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: laowubao-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: xggadmin-ingress
namespace: chaolai
spec:
rules:
- host: xggadmin.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: xggadmin-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: xggpjb-ingress
namespace: chaolai
spec:
rules:
- host: xggpjb.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: xggpjb-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: xggweb-ingress
namespace: chaolai
spec:
rules:
- host: xgg.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: xggweb-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: xggpc-ingress
namespace: chaolai
spec:
rules:
- host: xggpc.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: xggpc-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: scratchweb-ingress
namespace: chaolai
spec:
rules:
- host: boss.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: scratchweb-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: jiaxiya-ingress
namespace: chaolai
spec:
rules:
- host: jaxiya.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: jiaxiya-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: embedapp-ingress
namespace: chaolai
spec:
rules:
- host: embedapp.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: embedapp-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: paas-ingress
namespace: chaolai
spec:
rules:
- host: open.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: paas-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ipop-ingress
namespace: chaolai
spec:
rules:
- host: ipop.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: ipop-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ipself-ingress
namespace: chaolai
spec:
rules:
- host: ipself.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: ipself-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: zc-channel-web-ingress
namespace: chaolai
spec:
rules:
- host: zcchannelweb.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: zc-channel-web-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: zcapi-ingress
namespace: chaolai
spec:
rules:
- host: zcapi.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: zcapi-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: zc-channel-ingress
namespace: chaolai
spec:
rules:
- host: zcchannel.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: zc-channel-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: scratchweb-bigdata-ingress
namespace: chaolai
spec:
rules:
- host: bigdata.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: scratchweb-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: scratchweb-search-ingress
namespace: chaolai
spec:
rules:
- host: search.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: scratchweb-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-zhichan-ingress
namespace: chaolai
spec:
rules:
- host: zhichan.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-czhd-ingress
namespace: chaolai
spec:
rules:
- host: czhd.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-wangku-ingress
namespace: chaolai
spec:
rules:
- host: zhichan.99114.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-tianshizhu-ingress
namespace: chaolai
spec:
rules:
- host: tm.tsget.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-qifuguanjia-ingress
namespace: chaolai
spec:
rules:
- host: qifuguanjia.cn
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: scratchweb-magic-ingress
namespace: chaolai
spec:
rules:
- host: magic.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: scratchweb-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-rfjx-ingress
namespace: chaolai
spec:
rules:
- host: rfjx.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-enyi-ingress
namespace: chaolai
spec:
rules:
- host: enyi.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-sxd-ingress
namespace: chaolai
spec:
rules:
- host: sxd.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-zjgr-ingress
namespace: chaolai
spec:
rules:
- host: zjgr.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-jwy-ingress
namespace: chaolai
spec:
rules:
- host: jwy.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-weidian-ingress
namespace: chaolai
spec:
rules:
- host: weidian.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-winchance-ingress
namespace: chaolai
spec:
rules:
- host: winchance.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-kf-ingress
namespace: chaolai
spec:
rules:
- host: kf.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-htmr-ingress
namespace: chaolai
spec:
rules:
- host: htmr.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-jiaoyi-ingress
namespace: chaolai
spec:
rules:
- host: jiaoyi.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-tmeeeqifu-ingress
namespace: chaolai
spec:
rules:
- host: tm.eeeqifu.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-tmyouhaosuda-ingress
namespace: chaolai
spec:
rules:
- host: tm.youhaosuda.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-yueqintax-ingress
namespace: chaolai
spec:
rules:
- host: yueqintax.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-chuangtianzhong-ingress
namespace: chaolai
spec:
rules:
- host: chuangtianzhong.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-xinercheng-ingress
namespace: chaolai
spec:
rules:
- host: xinercheng.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-ganlanbiao-ingress
namespace: chaolai
spec:
rules:
- host: ganlanbiao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-kmyct-ingress
namespace: chaolai
spec:
rules:
- host: kmyct.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-shengwei-ingress
namespace: chaolai
spec:
rules:
- host: shengwei.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-patent-ingress
namespace: chaolai
spec:
rules:
- host: patent.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-hengycy-ingress
namespace: chaolai
spec:
rules:
- host: hengycy.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-jiahfh-ingress
namespace: chaolai
spec:
rules:
- host: jiahfh.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-gzdonmin-ingress
namespace: chaolai
spec:
rules:
- host: gzdongmin.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-zhongqqbt-ingress
namespace: chaolai
spec:
rules:
- host: zhongqqbt.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-junanda-ingress
namespace: chaolai
spec:
rules:
- host: junanda.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-yiyunzhang-ingress
namespace: chaolai
spec:
rules:
- host: yiyunzhang.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-whzslh-ingress
namespace: chaolai
spec:
rules:
- host: whzslh.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-dahangjia-ingress
namespace: chaolai
spec:
rules:
- host: oa.dahangjia.cn
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-dazhangfang-ingress
namespace: chaolai
spec:
rules:
- host: dazhangfang.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-shangnuo-ingress
namespace: chaolai
spec:
rules:
- host: cn.shangnuocaishui.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-hantangxiaolu-ingress
namespace: chaolai
spec:
rules:
- host: hantangxiaolu.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-hengcheng-ingress
namespace: chaolai
spec:
rules:
- host: hengcheng.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-xiaotiehe-ingress
namespace: chaolai
spec:
rules:
- host: brands.xiaotiebox.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-qf-ingress
namespace: chaolai
spec:
rules:
- host: qf.xiaotiebox.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-plf7788-ingress
namespace: chaolai
spec:
rules:
- host: plf7788.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: bugtrack-ingress
namespace: chaolai
spec:
rules:
- host: track.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: pm-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-fangqiezixun-ingress
namespace: chaolai
spec:
rules:
- host: fanqiezixun.cn
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-wwwfangqiezixun-ingress
namespace: chaolai
spec:
rules:
- host: www.fanqiezixun.cn
http:
paths:
- path: /
backend:
serviceName: igirl-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-zhuanzhidao-ingress
namespace: chaolai
spec:
rules:
- host: zhuanzhidao.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: ipself-service
servicePort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: igirl-channel-gateway-ingress
namespace: chaolai
spec:
rules:
- host: channelgateway-api.gongsibao.com
http:
paths:
- path: /
backend:
serviceName: zc-channel-gateway-service
servicePort: 80
apiVersion: apps/v1
kind: Deployment
metadata:
name: bpoadmin
namespace: chaolai
labels:
app: bpoadmin
spec:
replicas: 1
selector:
matchLabels:
app: bpoadmin
template:
metadata:
labels:
app: bpoadmin
spec:
restartPolicy: Always
containers:
- name: bpoadmin
image: registry.cn-beijing.aliyuncs.com/hantang/bpoadmin:9.0.4
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: APP_ENV
valueFrom:
configMapKeyRef:
name: zhichan-config
key: APP_ENV
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_HOST
- name: DB_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PORT
- name: DB_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PWD
- name: DB_USER
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_USER
- name: BPOADMIN_DB_NAME
valueFrom:
configMapKeyRef:
name: zhichan-config
key: BPOADMIN_DB_NAME
- name: BPOADMIN_REDIS_DB
valueFrom:
configMapKeyRef:
name: zhichan-config
key: BPOADMIN_REDIS_DB
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_HOST
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PORT
- name: REDIS_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PWD
- name: NODE_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: NODE_PORT
---
kind: Service
apiVersion: v1
metadata:
labels:
app: bpoadmin-service
name: bpoadmin-service
namespace: chaolai
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 20200
selector:
app: bpoadmin
apiVersion: apps/v1
kind: Deployment
metadata:
name: bpoweb
namespace: chaolai
labels:
app: bpoweb
spec:
replicas: 1
selector:
matchLabels:
app: bpoweb
template:
metadata:
labels:
app: bpoweb
spec:
restartPolicy: Always
containers:
- name: bpoweb
image: registry.cn-beijing.aliyuncs.com/hantang/bpoweb:8.0.14
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: APP_ENV
valueFrom:
configMapKeyRef:
name: zhichan-config
key: APP_ENV
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_HOST
- name: DB_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PORT
- name: DB_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PWD
- name: DB_USER
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_USER
- name: BPOWEB_DB_NAME
valueFrom:
configMapKeyRef:
name: zhichan-config
key: BPOWEB_DB_NAME
- name: BPOWEB_REDIS_DB
valueFrom:
configMapKeyRef:
name: zhichan-config
key: BPOWEB_REDIS_DB
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_HOST
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PORT
- name: REDIS_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PWD
- name: NODE_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: NODE_PORT
---
kind: Service
apiVersion: v1
metadata:
labels:
app: bpoweb-service
name: bpoweb-service
namespace: chaolai
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 19900
selector:
app: bpoweb
apiVersion: apps/v1
kind: Deployment
metadata:
name: embedapp
namespace: chaolai
labels:
app: embedapp
spec:
replicas: 1
selector:
matchLabels:
app: embedapp
template:
metadata:
labels:
app: embedapp
spec:
restartPolicy: Always
containers:
- name: embedapp
image: registry.cn-beijing.aliyuncs.com/hantang/embedapp:29.0.0
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: APP_ENV
valueFrom:
configMapKeyRef:
name: zhichan-config
key: APP_ENV
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_HOST
- name: DB_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PORT
- name: DB_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PWD
- name: DB_USER
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_USER
- name: EMBED_DB_NAME
valueFrom:
configMapKeyRef:
name: zhichan-config
key: EMBED_DB_NAME
- name: EMBED_REDIS_DB
valueFrom:
configMapKeyRef:
name: zhichan-config
key: EMBED_REDIS_DB
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_HOST
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PORT
- name: REDIS_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PWD
- name: NODE_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: NODE_PORT
---
kind: Service
apiVersion: v1
metadata:
labels:
app: embedapp-service
name: embedapp-service
namespace: chaolai
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 29600
selector:
app: embedapp
apiVersion: apps/v1
kind: Deployment
metadata:
name: zc-channel-gateway
namespace: chaolai
labels:
app: zc-channel-gateway
spec:
replicas: 1
selector:
matchLabels:
app: zc-channel-gateway
template:
metadata:
labels:
app: zc-channel-gateway
spec:
restartPolicy: Always
containers:
- name: igirlchannelgateway
image: registry.cn-beijing.aliyuncs.com/hantang/igirlchannelgateway:31.0.8
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: APP_ENV
valueFrom:
configMapKeyRef:
name: zhichan-config
key: APP_ENV
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_HOST
- name: DB_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PORT
- name: DB_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PWD
- name: DB_USER
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_USER
- name: ZC_API_DB_NAME
valueFrom:
configMapKeyRef:
name: zhichan-config
key: ZC_API_DB_NAME
- name: ZC_API_REDIS_DB
valueFrom:
configMapKeyRef:
name: zhichan-config
key: ZC_API_REDIS_DB
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_HOST
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PORT
- name: REDIS_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PWD
- name: NODE_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: NODE_PORT
---
kind: Service
apiVersion: v1
metadata:
labels:
app: zc-channel-gateway
name: zc-channel-gateway-service
namespace: chaolai
annotations:
plugins.konghq.com: prometheus
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 31800
selector:
app: zc-channel-gateway
apiVersion: apps/v1
kind: Deployment
metadata:
name: igirl
namespace: chaolai
labels:
app: igirl
spec:
replicas: 1
selector:
matchLabels:
app: igirl
template:
metadata:
labels:
app: igirl
spec:
restartPolicy: Always
containers:
- name: igirl
image: registry.cn-beijing.aliyuncs.com/hantang/igirl:1.0.2
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: APP_ENV
valueFrom:
configMapKeyRef:
name: zhichan-config
key: APP_ENV
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_HOST
- name: DB_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PORT
- name: DB_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PWD
- name: DB_USER
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_USER
- name: IGIRL_DB_NAME
valueFrom:
configMapKeyRef:
name: zhichan-config
key: IGIRL_DB_NAME
- name: IGIRL_REDIS_DB
valueFrom:
configMapKeyRef:
name: zhichan-config
key: IGIRL_REDIS_DB
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_HOST
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PORT
- name: REDIS_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PWD
- name: NODE_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: NODE_PORT
---
kind: Service
apiVersion: v1
metadata:
labels:
app: igirl-service
name: igirl-service
namespace: chaolai
annotations:
plugins.konghq.com: prometheus
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 19100
selector:
app: igirl
apiVersion: apps/v1
kind: Deployment
metadata:
name: ipopweb
namespace: chaolai
labels:
app: ipopweb
spec:
replicas: 1
selector:
matchLabels:
app: ipopweb
template:
metadata:
labels:
app: ipopweb
spec:
restartPolicy: Always
containers:
- name: ipopweb
image: registry.cn-beijing.aliyuncs.com/hantang/ipopweb:7.0.0
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: APP_ENV
valueFrom:
configMapKeyRef:
name: zhichan-config
key: APP_ENV
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_HOST
- name: DB_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PORT
- name: DB_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PWD
- name: DB_USER
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_USER
- name: ALIOP_DB_NAME
valueFrom:
configMapKeyRef:
name: zhichan-config
key: ALIOP_DB_NAME
- name: ALIOP_REDIS_DB
valueFrom:
configMapKeyRef:
name: zhichan-config
key: ALIOP_REDIS_DB
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_HOST
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PORT
- name: REDIS_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PWD
- name: NODE_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: NODE_PORT
---
kind: Service
apiVersion: v1
metadata:
labels:
app: ipop-service
name: ipop-service
namespace: chaolai
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 19800
selector:
app: ipopweb
apiVersion: apps/v1
kind: Deployment
metadata:
name: ipselfweb
namespace: chaolai
labels:
app: ipselfweb
spec:
replicas: 1
selector:
matchLabels:
app: ipselfweb
template:
metadata:
labels:
app: ipselfweb
spec:
restartPolicy: Always
containers:
- name: ipself
image: registry.cn-beijing.aliyuncs.com/hantang/ipselfweb:6.0.0
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: APP_ENV
valueFrom:
configMapKeyRef:
name: zhichan-config
key: APP_ENV
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_HOST
- name: DB_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PORT
- name: DB_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PWD
- name: DB_USER
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_USER
- name: ALIOP_DB_NAME
valueFrom:
configMapKeyRef:
name: zhichan-config
key: ALIOP_DB_NAME
- name: ALIOP_REDIS_DB
valueFrom:
configMapKeyRef:
name: zhichan-config
key: ALIOP_REDIS_DB
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_HOST
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PORT
- name: REDIS_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PWD
- name: NODE_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: NODE_PORT
---
kind: Service
apiVersion: v1
metadata:
labels:
app: ipself-service
name: ipself-service
namespace: chaolai
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 19700
selector:
app: ipselfweb
apiVersion: apps/v1
kind: Deployment
metadata:
name: jiaxiya
namespace: chaolai
labels:
app: jiaxiya
spec:
replicas: 1
selector:
matchLabels:
app: jiaxiya
template:
metadata:
labels:
app: jiaxiya
spec:
restartPolicy: Always
containers:
- name: jiaxiya
image: registry.cn-beijing.aliyuncs.com/hantang/jiaxiya:30.0.3
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: APP_ENV
valueFrom:
configMapKeyRef:
name: zhichan-config
key: APP_ENV
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_HOST
- name: DB_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PORT
- name: DB_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PWD
- name: DB_USER
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_USER
- name: JIAXIYA_DB_NAME
valueFrom:
configMapKeyRef:
name: zhichan-config
key: JIAXIYA_DB_NAME
- name: JIAXIYA_REDIS_DB
valueFrom:
configMapKeyRef:
name: zhichan-config
key: JIAXIYA_REDIS_DB
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_HOST
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PORT
- name: REDIS_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PWD
- name: NODE_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: NODE_PORT
---
kind: Service
apiVersion: v1
metadata:
labels:
app: jiaxiya-service
name: jiaxiya-service
namespace: chaolai
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 29700
selector:
app: jiaxiya
apiVersion: apps/v1
kind: Deployment
metadata:
name: laowubao
namespace: chaolai
labels:
app: laowubao
spec:
replicas: 1
selector:
matchLabels:
app: laowubao
template:
metadata:
labels:
app: laowubao
spec:
restartPolicy: Always
containers:
- name: laowubao
image: registry.cn-beijing.aliyuncs.com/hantang/laowubao:10.0.2
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: APP_ENV
valueFrom:
configMapKeyRef:
name: zhichan-config
key: APP_ENV
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_HOST
- name: DB_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PORT
- name: DB_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PWD
- name: DB_USER
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_USER
- name: LAOWUBAO_DB_NAME
valueFrom:
configMapKeyRef:
name: zhichan-config
key: LAOWUBAO_DB_NAME
- name: LAOWUBAO_REDIS_DB
valueFrom:
configMapKeyRef:
name: zhichan-config
key: LAOWUBAO_REDIS_DB
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_HOST
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PORT
- name: REDIS_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PWD
- name: NODE_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: NODE_PORT
---
kind: Service
apiVersion: v1
metadata:
labels:
app: laowubao-service
name: laowubao-service
namespace: chaolai
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 20000
selector:
app: laowubao
apiVersion: apps/v1
kind: Deployment
metadata:
name: paas
namespace: chaolai
labels:
app: paas
spec:
replicas: 1
selector:
matchLabels:
app: paas
template:
metadata:
labels:
app: paas
spec:
restartPolicy: Always
containers:
- name: paas
image: registry.cn-beijing.aliyuncs.com/hantang/openpaas:0.0.2
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: APP_ENV
valueFrom:
configMapKeyRef:
name: zhichan-config
key: APP_ENV
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_HOST
- name: DB_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PORT
- name: DB_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PWD
- name: DB_USER
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_USER
- name: PAAS_DB_NAME
valueFrom:
configMapKeyRef:
name: zhichan-config
key: PAAS_DB_NAME
- name: PAAS_REDIS_DB
valueFrom:
configMapKeyRef:
name: zhichan-config
key: PAAS_REDIS_DB
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_HOST
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PORT
- name: REDIS_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PWD
- name: NODE_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: NODE_PORT
---
kind: Service
apiVersion: v1
metadata:
labels:
app: paas-service
name: paas-service
namespace: chaolai
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 19000
selector:
app: paas
apiVersion: apps/v1
kind: Deployment
metadata:
name: pm
namespace: chaolai
labels:
app: pm
spec:
replicas: 1
selector:
matchLabels:
app: pm
template:
metadata:
labels:
app: pm
spec:
restartPolicy: Always
containers:
- name: pm
image: registry.cn-beijing.aliyuncs.com/hantang/pm:28.0.9
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: APP_ENV
valueFrom:
configMapKeyRef:
name: zhichan-config
key: APP_ENV
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_HOST
- name: DB_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PORT
- name: DB_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PWD
- name: DB_USER
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_USER
- name: PM_DB_NAME
valueFrom:
configMapKeyRef:
name: zhichan-config
key: PM_DB_NAME
- name: PM_REDIS_DB
valueFrom:
configMapKeyRef:
name: zhichan-config
key: PM_REDIS_DB
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_HOST
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PORT
- name: REDIS_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PWD
- name: NODE_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: NODE_PORT
---
kind: Service
apiVersion: v1
metadata:
labels:
app: pm-service
name: pm-service
namespace: chaolai
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 28000
selector:
app: pm
apiVersion: apps/v1
kind: Deployment
metadata:
name: scratchweb
namespace: chaolai
labels:
app: scratchweb
spec:
replicas: 3
selector:
matchLabels:
app: scratchweb
template:
metadata:
labels:
app: scratchweb
spec:
restartPolicy: Always
containers:
- name: scratchweb
image: registry.cn-beijing.aliyuncs.com/hantang/scratchweb:5.0.4
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: APP_ENV
valueFrom:
configMapKeyRef:
name: zhichan-config
key: APP_ENV
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_HOST
- name: DB_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PORT
- name: DB_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PWD
- name: DB_USER
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_USER
- name: SCRATCHWEB_DB_NAME
valueFrom:
configMapKeyRef:
name: zhichan-config
key: SCRATCHWEB_DB_NAME
- name: SCRATCHWEB_REDIS_DB
valueFrom:
configMapKeyRef:
name: zhichan-config
key: SCRATCHWEB_REDIS_DB
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_HOST
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PORT
- name: REDIS_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PWD
- name: NODE_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: NODE_PORT
---
kind: Service
apiVersion: v1
metadata:
labels:
app: scratchweb-service
name: scratchweb-service
namespace: chaolai
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 19600
selector:
app: scratchweb
apiVersion: apps/v1
kind: Deployment
metadata:
name: xggadmin
namespace: chaolai
labels:
app: xggadmin
spec:
replicas: 1
selector:
matchLabels:
app: xggadmin
template:
metadata:
labels:
app: xggadmin
spec:
restartPolicy: Always
containers:
- name: xggadmin
image: registry.cn-beijing.aliyuncs.com/hantang/xggadmin:16.0.14
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: APP_ENV
valueFrom:
configMapKeyRef:
name: zhichan-config
key: APP_ENV
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_HOST
- name: DB_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PORT
- name: DB_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PWD
- name: DB_USER
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_USER
- name: XGGADMIN_DB_NAME
valueFrom:
configMapKeyRef:
name: zhichan-config
key: XGGADMIN_DB_NAME
- name: XGGADMIN_REDIS_DB
valueFrom:
configMapKeyRef:
name: zhichan-config
key: XGGADMIN_REDIS_DB
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_HOST
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PORT
- name: REDIS_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PWD
- name: NODE_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: NODE_PORT
---
kind: Service
apiVersion: v1
metadata:
labels:
app: xggadmin-service
name: xggadmin-service
namespace: chaolai
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 21000
selector:
app: xggadmin
apiVersion: apps/v1
kind: Deployment
metadata:
name: xggpc
namespace: chaolai
labels:
app: xggpc
spec:
replicas: 1
selector:
matchLabels:
app: xggpc
template:
metadata:
labels:
app: xggpc
spec:
restartPolicy: Always
containers:
- name: xggpc
image: registry.cn-beijing.aliyuncs.com/hantang/xggpc:15.0.0
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: APP_ENV
valueFrom:
configMapKeyRef:
name: zhichan-config
key: APP_ENV
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_HOST
- name: DB_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PORT
- name: DB_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PWD
- name: DB_USER
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_USER
- name: XGGPC_DB_NAME
valueFrom:
configMapKeyRef:
name: zhichan-config
key: XGGPC_DB_NAME
- name: XGGPC_REDIS_DB
valueFrom:
configMapKeyRef:
name: zhichan-config
key: XGGPC_REDIS_DB
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_HOST
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PORT
- name: REDIS_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PWD
- name: NODE_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: NODE_PORT
---
kind: Service
apiVersion: v1
metadata:
labels:
app: xggpc-service
name: xggpc-service
namespace: chaolai
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 20300
selector:
app: xggpc
apiVersion: apps/v1
kind: Deployment
metadata:
name: xggpjb
namespace: chaolai
labels:
app: xggpjb
spec:
replicas: 1
selector:
matchLabels:
app: xggpjb
template:
metadata:
labels:
app: xggpjb
spec:
restartPolicy: Always
containers:
- name: xggpjb
image: registry.cn-beijing.aliyuncs.com/hantang/xggpjb:18.0.7
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: APP_ENV
valueFrom:
configMapKeyRef:
name: zhichan-config
key: APP_ENV
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_HOST
- name: DB_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PORT
- name: DB_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PWD
- name: DB_USER
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_USER
- name: XGGPJB_DB_NAME
valueFrom:
configMapKeyRef:
name: zhichan-config
key: XGGPJB_DB_NAME
- name: XGGPJB_REDIS_DB
valueFrom:
configMapKeyRef:
name: zhichan-config
key: XGGPJB_REDIS_DB
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_HOST
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PORT
- name: REDIS_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PWD
- name: NODE_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: NODE_PORT
---
kind: Service
apiVersion: v1
metadata:
labels:
app: xggpjb-service
name: xggpjb-service
namespace: chaolai
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 21200
selector:
app: xggpjb
apiVersion: apps/v1
kind: Deployment
metadata:
name: xggsvecommon
namespace: chaolai
labels:
app: xggsvecommon
spec:
replicas: 1
selector:
matchLabels:
app: xggsvecommon
template:
metadata:
labels:
app: xggsvecommon
spec:
restartPolicy: Always
containers:
- name: xggsvecommon
image: registry.cn-beijing.aliyuncs.com/hantang/xggsvecommon:11.0.1
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: APP_ENV
valueFrom:
configMapKeyRef:
name: zhichan-config
key: APP_ENV
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_HOST
- name: DB_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PORT
- name: DB_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PWD
- name: DB_USER
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_USER
- name: XGGSVECOMMON_DB_NAME
valueFrom:
configMapKeyRef:
name: zhichan-config
key: XGGSVECOMMON_DB_NAME
- name: XGGSVECOMMON_REDIS_DB
valueFrom:
configMapKeyRef:
name: zhichan-config
key: XGGSVECOMMON_REDIS_DB
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_HOST
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PORT
- name: REDIS_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PWD
- name: NODE_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: NODE_PORT
---
kind: Service
apiVersion: v1
metadata:
labels:
app: xggsvecommon-service
name: xggsvecommon-service
namespace: chaolai
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 20400
selector:
app: xggsvecommon
apiVersion: apps/v1
kind: Deployment
metadata:
name: xggsveinvoice
namespace: chaolai
labels:
app: xggsveinvoice
spec:
replicas: 1
selector:
matchLabels:
app: xggsveinvoice
template:
metadata:
labels:
app: xggsveinvoice
spec:
restartPolicy: Always
containers:
- name: xggsveinvoice
image: registry.cn-beijing.aliyuncs.com/hantang/xggsveinvoice:14.0.1
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: APP_ENV
valueFrom:
configMapKeyRef:
name: zhichan-config
key: APP_ENV
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_HOST
- name: DB_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PORT
- name: DB_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PWD
- name: DB_USER
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_USER
- name: XGGSVEINVOICE_DB_NAME
valueFrom:
configMapKeyRef:
name: zhichan-config
key: XGGSVEINVOICE_DB_NAME
- name: XGGSVEINVOICE_REDIS_DB
valueFrom:
configMapKeyRef:
name: zhichan-config
key: XGGSVEINVOICE_REDIS_DB
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_HOST
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PORT
- name: REDIS_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PWD
- name: NODE_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: NODE_PORT
---
kind: Service
apiVersion: v1
metadata:
labels:
app: xggsveinvoice-service
name: xggsveinvoice-service
namespace: chaolai
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 20700
selector:
app: xggsveinvoice
apiVersion: apps/v1
kind: Deployment
metadata:
name: xggsvemerchant
namespace: chaolai
labels:
app: xggsvemerchant
spec:
replicas: 1
selector:
matchLabels:
app: xggsvemerchant
template:
metadata:
labels:
app: xggsvemerchant
spec:
restartPolicy: Always
containers:
- name: xggsvemerchant
image: registry.cn-beijing.aliyuncs.com/hantang/xggsvemerchant:12.0.0
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: APP_ENV
valueFrom:
configMapKeyRef:
name: zhichan-config
key: APP_ENV
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_HOST
- name: DB_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PORT
- name: DB_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PWD
- name: DB_USER
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_USER
- name: XGGSVEMERCHANT_DB_NAME
valueFrom:
configMapKeyRef:
name: zhichan-config
key: XGGSVEMERCHANT_DB_NAME
- name: XGGSVEMERCHANT_REDIS_DB
valueFrom:
configMapKeyRef:
name: zhichan-config
key: XGGSVEMERCHANT_REDIS_DB
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_HOST
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PORT
- name: REDIS_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PWD
- name: NODE_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: NODE_PORT
---
kind: Service
apiVersion: v1
metadata:
labels:
app: xggsvemerchant-service
name: xggsvemerchant-service
namespace: chaolai
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 20500
selector:
app: xggsvemerchant
apiVersion: apps/v1
kind: Deployment
metadata:
name: xggsveorder
namespace: chaolai
labels:
app: xggsveorder
spec:
replicas: 1
selector:
matchLabels:
app: xggsveorder
template:
metadata:
labels:
app: xggsveorder
spec:
restartPolicy: Always
containers:
- name: igirl
image: registry.cn-beijing.aliyuncs.com/hantang/xggsveorder:13.0.1
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: APP_ENV
valueFrom:
configMapKeyRef:
name: zhichan-config
key: APP_ENV
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_HOST
- name: DB_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PORT
- name: DB_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PWD
- name: DB_USER
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_USER
- name: XGGSVEORDER_DB_NAME
valueFrom:
configMapKeyRef:
name: zhichan-config
key: XGGSVEORDER_DB_NAME
- name: XGGSVEORDER_REDIS_DB
valueFrom:
configMapKeyRef:
name: zhichan-config
key: XGGSVEORDER_REDIS_DB
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_HOST
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PORT
- name: REDIS_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PWD
- name: NODE_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: NODE_PORT
---
kind: Service
apiVersion: v1
metadata:
labels:
app: xggsveorder-service
name: xggsveorder-service
namespace: chaolai
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 20600
selector:
app: xggsveorder
apiVersion: apps/v1
kind: Deployment
metadata:
name: xggweb
namespace: chaolai
labels:
app: xggweb
spec:
replicas: 1
selector:
matchLabels:
app: xggweb
template:
metadata:
labels:
app: xggweb
spec:
restartPolicy: Always
containers:
- name: xggweb
image: registry.cn-beijing.aliyuncs.com/hantang/xggweb:17.0.0
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: APP_ENV
valueFrom:
configMapKeyRef:
name: zhichan-config
key: APP_ENV
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_HOST
- name: DB_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PORT
- name: DB_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PWD
- name: DB_USER
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_USER
- name: XGGWEB_DB_NAME
valueFrom:
configMapKeyRef:
name: zhichan-config
key: XGGWEB_DB_NAME
- name: XGGWEB_REDIS_DB
valueFrom:
configMapKeyRef:
name: zhichan-config
key: XGGWEB_REDIS_DB
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_HOST
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PORT
- name: REDIS_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PWD
- name: NODE_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: NODE_PORT
---
kind: Service
apiVersion: v1
metadata:
labels:
app: xggweb-service
name: xggweb-service
namespace: chaolai
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 20900
selector:
app: xggweb
apiVersion: apps/v1
kind: Deployment
metadata:
name: zc-api
namespace: chaolai
labels:
app: zc-api
spec:
replicas: 1
selector:
matchLabels:
app: zc-api
template:
metadata:
labels:
app: zc-api
spec:
restartPolicy: Always
containers:
- name: zc-api
image: registry.cn-beijing.aliyuncs.com/hantang/zcapi:2.0.0
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: APP_ENV
valueFrom:
configMapKeyRef:
name: zhichan-config
key: APP_ENV
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_HOST
- name: DB_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PORT
- name: DB_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PWD
- name: DB_USER
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_USER
- name: ZC_API_DB_NAME
valueFrom:
configMapKeyRef:
name: zhichan-config
key: ZC_API_DB_NAME
- name: ZC_API_REDIS_DB
valueFrom:
configMapKeyRef:
name: zhichan-config
key: ZC_API_REDIS_DB
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_HOST
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PORT
- name: REDIS_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PWD
- name: NODE_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: NODE_PORT
---
kind: Service
apiVersion: v1
metadata:
labels:
app: zcapi-service
name: zcapi-service
namespace: chaolai
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 19300
selector:
app: zc-api
apiVersion: apps/v1
kind: Deployment
metadata:
name: zc-channel
namespace: chaolai
labels:
app: zc-channel
spec:
replicas: 1
selector:
matchLabels:
app: zc-channel
template:
metadata:
labels:
app: zc-channel
spec:
restartPolicy: Always
containers:
- name: zc-channel
image: registry.cn-beijing.aliyuncs.com/hantang/zcchannel:4.0.5
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: APP_ENV
valueFrom:
configMapKeyRef:
name: zhichan-config
key: APP_ENV
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_HOST
- name: DB_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PORT
- name: DB_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PWD
- name: DB_USER
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_USER
- name: ZC_CHANNEL_DB_NAME
valueFrom:
configMapKeyRef:
name: zhichan-config
key: ZC_CHANNEL_DB_NAME
- name: ZC_CHANNEL_REDIS_DB
valueFrom:
configMapKeyRef:
name: zhichan-config
key: ZC_CHANNEL_REDIS_DB
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_HOST
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PORT
- name: REDIS_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PWD
- name: NODE_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: NODE_PORT
---
kind: Service
apiVersion: v1
metadata:
labels:
app: zc-channel-service
name: zc-channel-service
namespace: chaolai
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 19500
selector:
app: zc-channel
apiVersion: apps/v1
kind: Deployment
metadata:
name: zc-channel-web
namespace: chaolai
labels:
app: zc-channel-web
spec:
replicas: 1
selector:
matchLabels:
app: zc-channel-web
template:
metadata:
labels:
app: zc-channel-web
spec:
restartPolicy: Always
containers:
- name: zc-channel-web
image: registry.cn-beijing.aliyuncs.com/hantang/zcchannelweb:3.0.4
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: APP_ENV
valueFrom:
configMapKeyRef:
name: zhichan-config
key: APP_ENV
- name: DB_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_HOST
- name: DB_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PORT
- name: DB_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_PWD
- name: DB_USER
valueFrom:
configMapKeyRef:
name: zhichan-config
key: DB_USER
- name: ZC_CHANNEL_WEB_DB_NAME
valueFrom:
configMapKeyRef:
name: zhichan-config
key: ZC_CHANNEL_WEB_DB_NAME
- name: ZC_CHANNEL_WEB_REDIS_DB
valueFrom:
configMapKeyRef:
name: zhichan-config
key: ZC_CHANNEL_WEB_REDIS_DB
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_HOST
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PORT
- name: REDIS_PWD
valueFrom:
configMapKeyRef:
name: zhichan-config
key: REDIS_PWD
- name: NODE_PORT
valueFrom:
configMapKeyRef:
name: zhichan-config
key: NODE_PORT
---
kind: Service
apiVersion: v1
metadata:
labels:
app: zc-channel-web-service
name: zc-channel-web-service
namespace: chaolai
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 19400
selector:
app: zc-channel-web
apiVersion: v1
kind: ConfigMap
metadata:
name: zhichan-config
namespace: chaolai
data:
APP_ENV: prod
DB_HOST: 47.95.76.74
DB_PORT: "3306"
DB_USER: root
DB_PWD: Gongsibao2018
REDIS_HOST: r-2ze60261d9063784.redis.rds.aliyuncs.com
REDIS_PORT: "6379"
REDIS_PWD: Gongsibao2018
PAAS_DB_NAME: paas
PAAS_REDIS_DB: "14"
NODE_PORT: "80"
IGIRL_DB_NAME: igirl
IGIRL_REDIS_DB: "13"
ZC_API_DB_NAME: igirl_zcapi
ZC_API_REDIS_DB: "7"
ZC_CHANNEL_DB_NAME: igirl_channel
ZC_CHANNEL_REDIS_DB: "8"
ZC_CHANNEL_WEB_DB_NAME: demoapp
ZC_CHANNEL_WEB_REDIS_DB: "9"
SCRATCHWEB_DB_NAME: zc
SCRATCHWEB_REDIS_DB: "11"
ALIOP_DB_NAME: alop
ALIOP_REDIS_DB: "10"
BPOWEB_REDIS_DB: "6"
BPOWEB_DB_NAME: bpo
BPOADMIN_REDIS_DB: "6"
BPOADMIN_DB_NAME: bpo
PM_DB_NAME: pmmanage
PM_REDIS_DB: "5"
EMBED_REDIS_DB: "4"
EMBED_DB_NAME: embedapp
XGGADMIN_DB_NAME: xgg
XGGADMIN_REDIS_DB: "6"
XGGDELIVER_DB_NAME: xgg
XGGDELIVER_REDIS_DB: "6"
XGGWEB_DB_NAME: xgg
XGGWEB_REDIS_DB: "3"
XGGADMIN_DB_NAME: xgg
XGGADMIN_REDIS_DB: "3"
XGGPC_DB_NAME: xgg-pc
XGGPC_REDIS_DB: "3"
XGGSVECOMMON_DB_NAME: xgg-common
XGGSVECOMMON_REDIS_DB: "3"
XGGSVEMERCHANT_DB_NAME: xgg-merchant
XGGSVEMERCHANT_REDIS_DB: "3"
XGGSVEORDER_DB_NAME: xgg-order
XGGSVEORDER_REDIS_DB: "3"
XGGSVEINVOICE_DB_NAME: xgg-invoice
XGGSVEINVOICE_REDIS_DB: "3"
LAOWUBAO_DB_NAME: laowubao
LAOWUBAO_REDIS_DB: "3"
XGGPJB_DB_NAME: xgg
XGGPJB_REDIS_DB: "3"
JIAXIYA_REDIS_DB: "12"
JIAXIYA_DB_NAME: jiaxiya
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment