k8s
This commit is contained in:
@@ -8,9 +8,11 @@ metadata:
|
|||||||
app: apigateway
|
app: apigateway
|
||||||
name: apigateway-service
|
name: apigateway-service
|
||||||
spec:
|
spec:
|
||||||
|
type: NodePort
|
||||||
ports:
|
ports:
|
||||||
- port: 8000
|
- port: 8000
|
||||||
targetPort: 8000
|
targetPort: 8000
|
||||||
|
nodePort: 30001
|
||||||
selector:
|
selector:
|
||||||
env: production
|
env: production
|
||||||
tier: backend
|
tier: backend
|
||||||
|
|||||||
@@ -8,9 +8,11 @@ metadata:
|
|||||||
app: discovery
|
app: discovery
|
||||||
name: discovery-service
|
name: discovery-service
|
||||||
spec:
|
spec:
|
||||||
|
type: NodePort
|
||||||
ports:
|
ports:
|
||||||
- port: 8761
|
- port: 8761
|
||||||
targetPort: 8761
|
targetPort: 8761
|
||||||
|
nodePort: 30002
|
||||||
selector:
|
selector:
|
||||||
env: production
|
env: production
|
||||||
tier: backend
|
tier: backend
|
||||||
|
|||||||
@@ -85,10 +85,3 @@ spec:
|
|||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
volumeMounts:
|
|
||||||
- name: backend-volume
|
|
||||||
mountPath: /srv/nfs
|
|
||||||
volumes:
|
|
||||||
- name: backend-volume
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: backend-pvc
|
|
||||||
@@ -85,10 +85,3 @@ spec:
|
|||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
volumeMounts:
|
|
||||||
- name: backend-volume
|
|
||||||
mountPath: /srv/nfs
|
|
||||||
volumes:
|
|
||||||
- name: backend-volume
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: backend-pvc
|
|
||||||
@@ -85,10 +85,3 @@ spec:
|
|||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
volumeMounts:
|
|
||||||
- name: backend-volume
|
|
||||||
mountPath: /srv/nfs
|
|
||||||
volumes:
|
|
||||||
- name: backend-volume
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: backend-pvc
|
|
||||||
@@ -85,10 +85,3 @@ spec:
|
|||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
volumeMounts:
|
|
||||||
- name: backend-volume
|
|
||||||
mountPath: /srv/nfs
|
|
||||||
volumes:
|
|
||||||
- name: backend-volume
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: backend-pvc
|
|
||||||
@@ -8,10 +8,12 @@ metadata:
|
|||||||
app: admin
|
app: admin
|
||||||
name: frontend-admin-service
|
name: frontend-admin-service
|
||||||
spec:
|
spec:
|
||||||
|
type: NodePort
|
||||||
ports:
|
ports:
|
||||||
- name: frontend-admin-http
|
- name: frontend-admin-http
|
||||||
port: 3000
|
port: 3000
|
||||||
targetPort: 3000
|
targetPort: 3000
|
||||||
|
nodePort: 30011
|
||||||
selector:
|
selector:
|
||||||
env: production
|
env: production
|
||||||
tier: frontend
|
tier: frontend
|
||||||
|
|||||||
@@ -8,10 +8,12 @@ metadata:
|
|||||||
app: portal
|
app: portal
|
||||||
name: frontend-portal-service
|
name: frontend-portal-service
|
||||||
spec:
|
spec:
|
||||||
|
type: NodePort
|
||||||
ports:
|
ports:
|
||||||
- name: frontend-portal-http
|
- name: frontend-portal-http
|
||||||
port: 3000
|
port: 3000
|
||||||
targetPort: 3000
|
targetPort: 3000
|
||||||
|
nodePort: 30012
|
||||||
selector:
|
selector:
|
||||||
env: production
|
env: production
|
||||||
tier: frontend
|
tier: frontend
|
||||||
|
|||||||
@@ -8,9 +8,11 @@ metadata:
|
|||||||
app: jenkins
|
app: jenkins
|
||||||
name: jenkins-service
|
name: jenkins-service
|
||||||
spec:
|
spec:
|
||||||
|
type: NodePort
|
||||||
ports:
|
ports:
|
||||||
- port: 8080
|
- port: 8080
|
||||||
targetPort: 8080
|
targetPort: 8080
|
||||||
|
nodePort: 30006
|
||||||
selector:
|
selector:
|
||||||
env: production
|
env: production
|
||||||
tier: cicd
|
tier: cicd
|
||||||
@@ -27,9 +29,11 @@ metadata:
|
|||||||
app: jenkins
|
app: jenkins
|
||||||
name: jenkins-jnlp-service
|
name: jenkins-jnlp-service
|
||||||
spec:
|
spec:
|
||||||
|
type: NodePort
|
||||||
ports:
|
ports:
|
||||||
- port: 50000
|
- port: 50000
|
||||||
targetPort: 50000
|
targetPort: 50000
|
||||||
|
nodePort: 30007
|
||||||
selector:
|
selector:
|
||||||
env: production
|
env: production
|
||||||
tier: cicd
|
tier: cicd
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ metadata:
|
|||||||
app: kibana
|
app: kibana
|
||||||
name: kibana-service
|
name: kibana-service
|
||||||
spec:
|
spec:
|
||||||
|
type: NodePort
|
||||||
selector:
|
selector:
|
||||||
env: production
|
env: production
|
||||||
tier: backend
|
tier: backend
|
||||||
@@ -17,3 +18,4 @@ spec:
|
|||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
port: 5601
|
port: 5601
|
||||||
targetPort: 5601
|
targetPort: 5601
|
||||||
|
nodePort: 30005
|
||||||
@@ -28,13 +28,6 @@ spec:
|
|||||||
image: docker.elastic.co/logstash/logstash:7.10.1
|
image: docker.elastic.co/logstash/logstash:7.10.1
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8088
|
- containerPort: 8088
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 300m
|
|
||||||
memory: 512Mi
|
|
||||||
limits:
|
|
||||||
cpu: 300m
|
|
||||||
memory: 512Mi
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: logstash-config-volume
|
- name: logstash-config-volume
|
||||||
mountPath: /usr/share/logstash/config
|
mountPath: /usr/share/logstash/config
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ metadata:
|
|||||||
app: rabbitmq
|
app: rabbitmq
|
||||||
name: rabbitmq-service
|
name: rabbitmq-service
|
||||||
spec:
|
spec:
|
||||||
|
type: NodePort
|
||||||
selector:
|
selector:
|
||||||
env: production
|
env: production
|
||||||
tier: backend
|
tier: backend
|
||||||
@@ -18,7 +19,9 @@ spec:
|
|||||||
protocol: TCP
|
protocol: TCP
|
||||||
port: 5672
|
port: 5672
|
||||||
targetPort: 5672
|
targetPort: 5672
|
||||||
|
nodePort: 30003
|
||||||
- name: http-15672
|
- name: http-15672
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
port: 15672
|
port: 15672
|
||||||
targetPort: 15672
|
targetPort: 15672
|
||||||
|
nodePort: 30004
|
||||||
@@ -8,6 +8,7 @@ metadata:
|
|||||||
app: zipkin
|
app: zipkin
|
||||||
name: zipkin-service
|
name: zipkin-service
|
||||||
spec:
|
spec:
|
||||||
|
type: NodePort
|
||||||
selector:
|
selector:
|
||||||
env: production
|
env: production
|
||||||
tier: backend
|
tier: backend
|
||||||
@@ -18,3 +19,4 @@ spec:
|
|||||||
protocol: TCP
|
protocol: TCP
|
||||||
port: 9411
|
port: 9411
|
||||||
targetPort: 9411
|
targetPort: 9411
|
||||||
|
nodePort: 30008
|
||||||
Reference in New Issue
Block a user