Skip to content

Commit

Permalink
Modifing namespace from default to devops
Browse files Browse the repository at this point in the history
  • Loading branch information
aliasmee committed Aug 16, 2017
1 parent fa15ccc commit 53407f1
Show file tree
Hide file tree
Showing 15 changed files with 75 additions and 42 deletions.
4 changes: 2 additions & 2 deletions es-client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ metadata:
labels:
component: elasticsearch
role: client
namespace: devops
spec:
replicas: 2
replicas: 3
template:
metadata:
labels:
Expand Down Expand Up @@ -41,7 +42,6 @@ spec:
fieldPath: metadata.name
- name: "CLUSTER_NAME"
value: "graylog"
value: "graylog"
- name: NODE_MASTER
value: "false"
- name: NODE_DATA
Expand Down
14 changes: 7 additions & 7 deletions es-data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ metadata:
labels:
component: elasticsearch
role: data
namespace: devops
spec:
replicas: 2
replicas: 3
template:
metadata:
labels:
Expand Down Expand Up @@ -41,7 +42,6 @@ spec:
fieldPath: metadata.name
- name: "CLUSTER_NAME"
value: "graylog"
value: "graylog"
- name: NODE_MASTER
value: "false"
- name: NODE_INGEST
Expand All @@ -57,12 +57,12 @@ spec:
name: transport
protocol: TCP
volumeMounts:
- name: nfs
- name: esdata
mountPath: /data
imagePullSecrets:
- name: qcloudregistrykey
volumes:
- name: nfs
nfs:
server: 172.17.255.16
path: "/"
- name: esdata
hostPath:
path: /data/esnode

1 change: 1 addition & 0 deletions es-discovery-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
labels:
component: elasticsearch
role: master
namespace: devops
spec:
selector:
component: elasticsearch
Expand Down
6 changes: 3 additions & 3 deletions es-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
labels:
component: elasticsearch
role: master
namespace: devops
spec:
replicas: 3
template:
Expand Down Expand Up @@ -41,9 +42,8 @@ spec:
fieldPath: metadata.name
- name: "CLUSTER_NAME"
value: "graylog"
value: "graylog"
- name: "NUMBER_OF_MASTERS"
value: "2"
value: "3"
- name: NODE_MASTER
value: "true"
- name: NODE_INGEST
Expand All @@ -66,4 +66,4 @@ spec:
volumes:
- name: storage
hostPath:
path: /tmp
path: /data/esmaster
2 changes: 1 addition & 1 deletion es-svc-qcloud-lb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
component: elasticsearch
role: client
name: elasticsearch
namespace: default
namespace: devops
spec:
clusterIP: 172.20.255.27
ports:
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion kibana-svc.yaml → future/kibana-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: kibana
namespace: default
namespace: devops
labels:
component: kibana
spec:
Expand Down
2 changes: 1 addition & 1 deletion kibana.yaml → future/kibana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: kibana
namespace: default
namespace: devops
labels:
component: kibana
spec:
Expand Down
36 changes: 23 additions & 13 deletions graylog-node-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,35 @@ metadata:
service.kubernetes.io/qcloud-loadbalancer-internal: "21186"
service.kubernetes.io/qcloud-loadbalancer-internal-subnetid: subnet-p9oq3uc1
labels:
component: graylog
role: graylog-node
name: graylog-node
namespace: default
namespace: devops
spec:
clusterIP: 172.20.255.34
ports:
- name: http
port: 9000
targetPort: 9000
protocol: TCP
- name: apiport
port: 12900
protocol: TCP
targetPort: 12900
- name: tcpin
port: 1234
targetPort: 1234
protocol: TCP
- name: udpin
port: 12300
targetPort: 12300
protocol: UDP
- name: udpin1
port: 12301
targetPort: 12301
protocol: UDP
- name: udpin2
port: 12302
targetPort: 12302
protocol: UDP
- name: udpin3
port: 12303
targetPort: 12303
protocol: UDP
- name: udpin4
port: 12304
targetPort: 12304
protocol: UDP
selector:
component: graylog
role: graylog-node
sessionAffinity: None
type: LoadBalancer
11 changes: 8 additions & 3 deletions graylog-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,27 @@ apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: graylog-node
namespace: default
namespace: devops
labels:
component: graylog
role: graylog-node
spec:
replicas: 2
replicas: 3
selector:
matchLabels:
component: graylog
role: graylog-node
template:
metadata:
labels:
component: graylog
role: graylog-node
spec:
containers:
- name: graylog
image: ccr.ccs.tencentyun.com/zhulux_sre/graylog:v2.3.0
ports:
- containerPort: 1234
- containerPort: 12300
name: udp
protocol: UDP
- containerPort: 9000
Expand All @@ -46,5 +49,7 @@ spec:
value: "false"
- name: "GRAYLOG_WEB_ENABLE"
value: "false"
- name: "GRAYLOG_OUTPUT_BATCH_SIZE"
value: "5000"
imagePullSecrets:
- name: qcloudregistrykey
20 changes: 17 additions & 3 deletions graylog-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ metadata:
service.kubernetes.io/qcloud-loadbalancer-internal-subnetid: subnet-p9oq3uc1
labels:
component: graylog
role: master
name: graylog
namespace: default
namespace: devops
spec:
clusterIP: 172.20.255.33
ports:
Expand All @@ -20,10 +21,23 @@ spec:
protocol: TCP
targetPort: 12900
- name: tcpin
port: 1234
targetPort: 1234
port: 12300
targetPort: 12300
protocol: TCP
- name: tcpin1
port: 12301
targetPort: 12301
protocol: TCP
- name: tcpin2
port: 12302
targetPort: 12302
protocol: TCP
- name: tcpin3
port: 12303
targetPort: 12303
protocol: TCP
selector:
component: graylog
role: master
sessionAffinity: None
type: LoadBalancer
13 changes: 8 additions & 5 deletions graylog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,28 @@ apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: graylog
namespace: default
namespace: devops
labels:
component: graylog
role: master
spec:
replicas: 1
selector:
matchLabels:
component: graylog
role: master
template:
metadata:
labels:
component: graylog
role: master
spec:
containers:
- name: graylog
image: ccr.ccs.tencentyun.com/zhulux_sre/graylog:v2.3.0
ports:
- containerPort: 1234
name: datain
- containerPort: 12300
name: tcpin
protocol: TCP
- containerPort: 9000
name: graylog-api
Expand All @@ -41,11 +44,11 @@ spec:
- name: "GRAYLOG_MONGODB_URI"
value: "mongodb://mongo:27017/graylog"
- name: "GRAYLOG_PASSWORD_SECRET"
value: somepasswordpepper
value: "somepasswordpepper"
- name: "GRAYLOG_ROOT_PASSWORD_SHA2"
value: "8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918"
- name: "GRAYLOG_REST_TRANSPORT_URI"
value: "http://172.17.1.4:12900"
value: "http://172.17.1.7:12900"
- name: "GRAYLOG_REST_LISTEN_URI"
value: "http://0.0.0.0:12900"
- name: "GRAYLOG_WEB_LISTEN_URI"
Expand Down
4 changes: 2 additions & 2 deletions mongo-svc.yaml → mongodb-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ apiVersion: v1
kind: Service
metadata:
name: mongo
namespace: default
namespace: devops
labels:
component: mongo
spec:
selector:
component: mongo
ports:
- name: mongo
- name: db
port: 27017
protocol: TCP

2 changes: 1 addition & 1 deletion mongo.yaml → mongodb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: mongo
namespace: default
namespace: devops
labels:
component: mongo
spec:
Expand Down

0 comments on commit 53407f1

Please sign in to comment.