fix: MinecraftServer | ensure correct tcp routing
This commit is contained in:
@@ -36,7 +36,9 @@ export class MinecraftServer extends Construct {
|
|||||||
port: [
|
port: [
|
||||||
{
|
{
|
||||||
port: 25565,
|
port: 25565,
|
||||||
targetPort: name,
|
targetPort: "25565",
|
||||||
|
protocol: "TCP",
|
||||||
|
name: "minecraft",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
type: "ClusterIP",
|
type: "ClusterIP",
|
||||||
@@ -95,14 +97,6 @@ export class MinecraftServer extends Construct {
|
|||||||
nodeSelector: {
|
nodeSelector: {
|
||||||
nodepool: "worker",
|
nodepool: "worker",
|
||||||
},
|
},
|
||||||
volume: [
|
|
||||||
{
|
|
||||||
name: `${name}-data`,
|
|
||||||
persistentVolumeClaim: {
|
|
||||||
claimName: `${name}-data-${name}-0`,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
container: [
|
container: [
|
||||||
{
|
{
|
||||||
name,
|
name,
|
||||||
@@ -110,7 +104,7 @@ export class MinecraftServer extends Construct {
|
|||||||
env,
|
env,
|
||||||
port: [
|
port: [
|
||||||
{
|
{
|
||||||
name: "minecraft",
|
name,
|
||||||
containerPort: 25565,
|
containerPort: 25565,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user