Create service.yaml
This commit is contained in:
13
Deployment/service.yaml
Normal file
13
Deployment/service.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: onix-adapter-service
|
||||||
|
namespace: onix-adapter # Namespace
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: onix-adapter # This should match the app name in deployment.yaml
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 8080
|
||||||
|
type: LoadBalancer #NodePort or LoadBalancer
|
||||||
Reference in New Issue
Block a user