first commit
This commit is contained in:
55
04-svc.yaml
Normal file
55
04-svc.yaml
Normal file
@@ -0,0 +1,55 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
annotations:
|
||||
metallb.universe.tf/ip-allocated-from-pool: prod-ocp-101-200
|
||||
metallb.universe.tf/allow-shared-ip: minecraft
|
||||
labels:
|
||||
app: minecraft
|
||||
app.kubernetes.io/component: minecraft
|
||||
app.kubernetes.io/instance: minecraft
|
||||
name: minecraft
|
||||
namespace: minecraft
|
||||
spec:
|
||||
allocateLoadBalancerNodePorts: true
|
||||
externalTrafficPolicy: Cluster
|
||||
internalTrafficPolicy: Cluster
|
||||
ipFamilies:
|
||||
- IPv4
|
||||
ipFamilyPolicy: SingleStack
|
||||
ports:
|
||||
- port: 25565
|
||||
protocol: TCP
|
||||
targetPort: 25565
|
||||
selector:
|
||||
deployment: minecraft
|
||||
sessionAffinity: None
|
||||
type: LoadBalancer
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
annotations:
|
||||
metallb.universe.tf/allow-shared-ip: minecraft
|
||||
metallb.universe.tf/ip-allocated-from-pool: prod-ocp-101-200
|
||||
labels:
|
||||
app: geysermc
|
||||
app.kubernetes.io/component: geysermc
|
||||
app.kubernetes.io/instance: geysermc
|
||||
name: geysermc
|
||||
namespace: minecraft
|
||||
spec:
|
||||
allocateLoadBalancerNodePorts: true
|
||||
externalTrafficPolicy: Cluster
|
||||
internalTrafficPolicy: Cluster
|
||||
ipFamilies:
|
||||
- IPv4
|
||||
ipFamilyPolicy: SingleStack
|
||||
ports:
|
||||
- port: 19132
|
||||
protocol: UDP
|
||||
targetPort: 19132
|
||||
selector:
|
||||
deployment: geysermc
|
||||
sessionAffinity: None
|
||||
type: LoadBalancer
|
||||
Reference in New Issue
Block a user