multiple services to allow communication between pods
This commit is contained in:
parent
a5627a97af
commit
f1c83cf0c0
@ -12,7 +12,7 @@ spec:
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nexus
|
||||
app: httpd
|
||||
creationTimestamp: null
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
@ -26,9 +26,4 @@ spec:
|
||||
value: registry.molgenis.org
|
||||
ports:
|
||||
- containerPort: 80
|
||||
resources: {}
|
||||
- name: nexus
|
||||
image: sonatype/nexus:latest
|
||||
ports:
|
||||
- containerPort: 8081
|
||||
- containerPort: 5000
|
||||
resources: {}
|
12
nexus/v1.0.0/templates/httpd-service.yaml
Normal file
12
nexus/v1.0.0/templates/httpd-service.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: httpd
|
||||
labels:
|
||||
app: httpd
|
||||
spec:
|
||||
type: NodePort
|
||||
ports:
|
||||
- port: 80
|
||||
selector:
|
||||
app: httpd
|
24
nexus/v1.0.0/templates/nexus-deployment.yaml
Normal file
24
nexus/v1.0.0/templates/nexus-deployment.yaml
Normal file
@ -0,0 +1,24 @@
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
name: nexus
|
||||
labels:
|
||||
app: nexus
|
||||
environment: production
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy: {}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nexus
|
||||
creationTimestamp: null
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
containers:
|
||||
- name: nexus
|
||||
image: sonatype/nexus:latest
|
||||
ports:
|
||||
- containerPort: 8081
|
||||
- containerPort: 5000
|
13
nexus/v1.0.0/templates/nexus-service.yaml
Normal file
13
nexus/v1.0.0/templates/nexus-service.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: nexus
|
||||
labels:
|
||||
app: nexus
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 8081
|
||||
- port: 5000
|
||||
selector:
|
||||
app: nexus
|
@ -1,19 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ template "nexus.fullname" . }}
|
||||
labels:
|
||||
app: {{ template "nexus.name" . }}
|
||||
chart: {{ template "nexus.chart" . }}
|
||||
release: {{ .Release.Name }}
|
||||
heritage: {{ .Release.Service }}
|
||||
spec:
|
||||
type: {{ .Values.service.type }}
|
||||
ports:
|
||||
- port: {{ .Values.service.port }}
|
||||
targetPort: http
|
||||
protocol: TCP
|
||||
name: http
|
||||
selector:
|
||||
app: {{ template "nexus.name" . }}
|
||||
release: {{ .Release.Name }}
|
Loading…
Reference in New Issue
Block a user