From a46b5629228e8da915c1c3eae6d4494975a01aff Mon Sep 17 00:00:00 2001 From: Dimitris-Ilias Gkanatsios Date: Thu, 7 Apr 2022 10:53:28 -0700 Subject: [PATCH] v0.3.2 (#216) --- installfiles/operator.yaml | 49 +++++++------ installfiles/operator_with_monitoring.yaml | 68 ++++++++++++------- installfiles/operator_with_security.yaml | 49 +++++++------ ...operator_with_security_and_monitoring.yaml | 49 +++++++------ .../config/manager/kustomization.yaml | 4 +- samples/netcore/sample-hostnetwork.yaml | 2 +- samples/netcore/sample-nodeaffinity.yaml | 2 +- samples/netcore/sample-requestslimits.yaml | 2 +- samples/netcore/sample-secondnodepool.yaml | 2 +- samples/netcore/sample.yaml | 2 +- samples/openarena/sample.yaml | 2 +- 11 files changed, 123 insertions(+), 108 deletions(-) diff --git a/installfiles/operator.yaml b/installfiles/operator.yaml index 3eea67d8..46a5aaf6 100755 --- a/installfiles/operator.yaml +++ b/installfiles/operator.yaml @@ -79,18 +79,10 @@ spec: minimum: 0 type: integer portsToExpose: - description: PortsToExpose is an array of tuples of container/port names that correspond to the ports that will be exposed on the VM + description: PortsToExpose is an array of ports that will be exposed on the VM items: - description: PortToExpose is a tuple of container/port names that correspond to the ports that will be exposed on the VM - properties: - containerName: - type: string - portName: - type: string - required: - - containerName - - portName - type: object + format: int32 + type: integer type: array standingBy: description: StandingBy is the requested number of standingBy servers @@ -4353,18 +4345,10 @@ spec: type: object type: array portsToExpose: - description: PortsToExpose is an array of tuples of container/port names that correspond to the ports that will be exposed on the VM + description: PortsToExpose is an array of ports that will be exposed on the VM items: - description: PortToExpose is a tuple of container/port names that correspond to the ports that will be exposed on the VM - properties: - containerName: - type: string - portName: - type: string - required: - - containerName - - portName - type: object + format: int32 + type: integer type: array template: description: Template describes the pod template specification of the game server @@ -8813,6 +8797,21 @@ spec: selector: control-plane: controller-manager --- +apiVersion: v1 +kind: Service +metadata: + labels: + name: nodeagent + name: thundernetes-nodeagent-metrics-service + namespace: thundernetes-system +spec: + ports: + - name: nodeagentport + port: 56001 + targetPort: 56001 + selector: + name: nodeagent +--- apiVersion: apps/v1 kind: Deployment metadata: @@ -8845,12 +8844,12 @@ spec: - name: API_SERVICE_SECURITY value: none - name: THUNDERNETES_INIT_CONTAINER_IMAGE - value: ghcr.io/playfab/thundernetes-initcontainer:0.3.1 + value: ghcr.io/playfab/thundernetes-initcontainer:0.3.2 - name: TLS_SECRET_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - image: ghcr.io/playfab/thundernetes-operator:0.3.1 + image: ghcr.io/playfab/thundernetes-operator:0.3.2 imagePullPolicy: IfNotPresent livenessProbe: httpGet: @@ -8909,7 +8908,7 @@ spec: fieldPath: status.hostIP - name: LOG_LEVEL value: info - image: ghcr.io/playfab/thundernetes-nodeagent:0.3.1 + image: ghcr.io/playfab/thundernetes-nodeagent:0.3.2 livenessProbe: httpGet: path: /healthz diff --git a/installfiles/operator_with_monitoring.yaml b/installfiles/operator_with_monitoring.yaml index 0195fb42..dff5adb3 100644 --- a/installfiles/operator_with_monitoring.yaml +++ b/installfiles/operator_with_monitoring.yaml @@ -79,18 +79,10 @@ spec: minimum: 0 type: integer portsToExpose: - description: PortsToExpose is an array of tuples of container/port names that correspond to the ports that will be exposed on the VM + description: PortsToExpose is an array of ports that will be exposed on the VM items: - description: PortToExpose is a tuple of container/port names that correspond to the ports that will be exposed on the VM - properties: - containerName: - type: string - portName: - type: string - required: - - containerName - - portName - type: object + format: int32 + type: integer type: array standingBy: description: StandingBy is the requested number of standingBy servers @@ -4353,18 +4345,10 @@ spec: type: object type: array portsToExpose: - description: PortsToExpose is an array of tuples of container/port names that correspond to the ports that will be exposed on the VM + description: PortsToExpose is an array of ports that will be exposed on the VM items: - description: PortToExpose is a tuple of container/port names that correspond to the ports that will be exposed on the VM - properties: - containerName: - type: string - portName: - type: string - required: - - containerName - - portName - type: object + format: int32 + type: integer type: array template: description: Template describes the pod template specification of the game server @@ -8813,6 +8797,21 @@ spec: selector: control-plane: controller-manager --- +apiVersion: v1 +kind: Service +metadata: + labels: + name: nodeagent + name: thundernetes-nodeagent-metrics-service + namespace: thundernetes-system +spec: + ports: + - name: nodeagentport + port: 56001 + targetPort: 56001 + selector: + name: nodeagent +--- apiVersion: apps/v1 kind: Deployment metadata: @@ -8845,12 +8844,12 @@ spec: - name: API_SERVICE_SECURITY value: none - name: THUNDERNETES_INIT_CONTAINER_IMAGE - value: ghcr.io/playfab/thundernetes-initcontainer:0.3.1 + value: ghcr.io/playfab/thundernetes-initcontainer:0.3.2 - name: TLS_SECRET_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - image: ghcr.io/playfab/thundernetes-operator:0.3.1 + image: ghcr.io/playfab/thundernetes-operator:0.3.2 imagePullPolicy: IfNotPresent livenessProbe: httpGet: @@ -8909,7 +8908,7 @@ spec: fieldPath: status.hostIP - name: LOG_LEVEL value: info - image: ghcr.io/playfab/thundernetes-nodeagent:0.3.1 + image: ghcr.io/playfab/thundernetes-nodeagent:0.3.2 livenessProbe: httpGet: path: /healthz @@ -8994,3 +8993,22 @@ spec: selector: matchLabels: control-plane: controller-manager +--- +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + labels: + name: nodeagent + name: thundernetes-nodeagent-metrics-monitor + namespace: thundernetes-system +spec: + endpoints: + - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token + path: /metrics + port: nodeagentport + scheme: http + tlsConfig: + insecureSkipVerify: true + selector: + matchLabels: + name: nodeagent diff --git a/installfiles/operator_with_security.yaml b/installfiles/operator_with_security.yaml index a41606e5..ec8f00b5 100644 --- a/installfiles/operator_with_security.yaml +++ b/installfiles/operator_with_security.yaml @@ -79,18 +79,10 @@ spec: minimum: 0 type: integer portsToExpose: - description: PortsToExpose is an array of tuples of container/port names that correspond to the ports that will be exposed on the VM + description: PortsToExpose is an array of ports that will be exposed on the VM items: - description: PortToExpose is a tuple of container/port names that correspond to the ports that will be exposed on the VM - properties: - containerName: - type: string - portName: - type: string - required: - - containerName - - portName - type: object + format: int32 + type: integer type: array standingBy: description: StandingBy is the requested number of standingBy servers @@ -4353,18 +4345,10 @@ spec: type: object type: array portsToExpose: - description: PortsToExpose is an array of tuples of container/port names that correspond to the ports that will be exposed on the VM + description: PortsToExpose is an array of ports that will be exposed on the VM items: - description: PortToExpose is a tuple of container/port names that correspond to the ports that will be exposed on the VM - properties: - containerName: - type: string - portName: - type: string - required: - - containerName - - portName - type: object + format: int32 + type: integer type: array template: description: Template describes the pod template specification of the game server @@ -8813,6 +8797,21 @@ spec: selector: control-plane: controller-manager --- +apiVersion: v1 +kind: Service +metadata: + labels: + name: nodeagent + name: thundernetes-nodeagent-metrics-service + namespace: thundernetes-system +spec: + ports: + - name: nodeagentport + port: 56001 + targetPort: 56001 + selector: + name: nodeagent +--- apiVersion: apps/v1 kind: Deployment metadata: @@ -8845,12 +8844,12 @@ spec: - name: API_SERVICE_SECURITY value: usetls - name: THUNDERNETES_INIT_CONTAINER_IMAGE - value: ghcr.io/playfab/thundernetes-initcontainer:0.3.1 + value: ghcr.io/playfab/thundernetes-initcontainer:0.3.2 - name: TLS_SECRET_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - image: ghcr.io/playfab/thundernetes-operator:0.3.1 + image: ghcr.io/playfab/thundernetes-operator:0.3.2 imagePullPolicy: IfNotPresent livenessProbe: httpGet: @@ -8909,7 +8908,7 @@ spec: fieldPath: status.hostIP - name: LOG_LEVEL value: info - image: ghcr.io/playfab/thundernetes-nodeagent:0.3.1 + image: ghcr.io/playfab/thundernetes-nodeagent:0.3.2 livenessProbe: httpGet: path: /healthz diff --git a/installfiles/operator_with_security_and_monitoring.yaml b/installfiles/operator_with_security_and_monitoring.yaml index a41606e5..ec8f00b5 100644 --- a/installfiles/operator_with_security_and_monitoring.yaml +++ b/installfiles/operator_with_security_and_monitoring.yaml @@ -79,18 +79,10 @@ spec: minimum: 0 type: integer portsToExpose: - description: PortsToExpose is an array of tuples of container/port names that correspond to the ports that will be exposed on the VM + description: PortsToExpose is an array of ports that will be exposed on the VM items: - description: PortToExpose is a tuple of container/port names that correspond to the ports that will be exposed on the VM - properties: - containerName: - type: string - portName: - type: string - required: - - containerName - - portName - type: object + format: int32 + type: integer type: array standingBy: description: StandingBy is the requested number of standingBy servers @@ -4353,18 +4345,10 @@ spec: type: object type: array portsToExpose: - description: PortsToExpose is an array of tuples of container/port names that correspond to the ports that will be exposed on the VM + description: PortsToExpose is an array of ports that will be exposed on the VM items: - description: PortToExpose is a tuple of container/port names that correspond to the ports that will be exposed on the VM - properties: - containerName: - type: string - portName: - type: string - required: - - containerName - - portName - type: object + format: int32 + type: integer type: array template: description: Template describes the pod template specification of the game server @@ -8813,6 +8797,21 @@ spec: selector: control-plane: controller-manager --- +apiVersion: v1 +kind: Service +metadata: + labels: + name: nodeagent + name: thundernetes-nodeagent-metrics-service + namespace: thundernetes-system +spec: + ports: + - name: nodeagentport + port: 56001 + targetPort: 56001 + selector: + name: nodeagent +--- apiVersion: apps/v1 kind: Deployment metadata: @@ -8845,12 +8844,12 @@ spec: - name: API_SERVICE_SECURITY value: usetls - name: THUNDERNETES_INIT_CONTAINER_IMAGE - value: ghcr.io/playfab/thundernetes-initcontainer:0.3.1 + value: ghcr.io/playfab/thundernetes-initcontainer:0.3.2 - name: TLS_SECRET_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - image: ghcr.io/playfab/thundernetes-operator:0.3.1 + image: ghcr.io/playfab/thundernetes-operator:0.3.2 imagePullPolicy: IfNotPresent livenessProbe: httpGet: @@ -8909,7 +8908,7 @@ spec: fieldPath: status.hostIP - name: LOG_LEVEL value: info - image: ghcr.io/playfab/thundernetes-nodeagent:0.3.1 + image: ghcr.io/playfab/thundernetes-nodeagent:0.3.2 livenessProbe: httpGet: path: /healthz diff --git a/pkg/operator/config/manager/kustomization.yaml b/pkg/operator/config/manager/kustomization.yaml index 43d1a99e..cb79ba1d 100755 --- a/pkg/operator/config/manager/kustomization.yaml +++ b/pkg/operator/config/manager/kustomization.yaml @@ -10,5 +10,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization images: - name: controller - newName: thundernetes-operator - newTag: 104c3bb + newName: ghcr.io/playfab/thundernetes-operator + newTag: 0.3.2 diff --git a/samples/netcore/sample-hostnetwork.yaml b/samples/netcore/sample-hostnetwork.yaml index d655d6ee..3b8baf49 100644 --- a/samples/netcore/sample-hostnetwork.yaml +++ b/samples/netcore/sample-hostnetwork.yaml @@ -19,7 +19,7 @@ spec: spec: hostNetwork: true # this sample uses host networking containers: - - image: ghcr.io/playfab/thundernetes-netcore:0.3.1 + - image: ghcr.io/playfab/thundernetes-netcore:0.3.2 name: thundernetes-sample-netcore ports: - protocol: TCP # your game server port protocol diff --git a/samples/netcore/sample-nodeaffinity.yaml b/samples/netcore/sample-nodeaffinity.yaml index c4b8eb31..151fd95d 100644 --- a/samples/netcore/sample-nodeaffinity.yaml +++ b/samples/netcore/sample-nodeaffinity.yaml @@ -18,7 +18,7 @@ spec: template: spec: containers: - - image: ghcr.io/playfab/thundernetes-netcore:0.3.1 + - image: ghcr.io/playfab/thundernetes-netcore:0.3.2 name: thundernetes-sample-netcore ports: - containerPort: 80 # your game server port diff --git a/samples/netcore/sample-requestslimits.yaml b/samples/netcore/sample-requestslimits.yaml index de38b070..d6dcbc5e 100644 --- a/samples/netcore/sample-requestslimits.yaml +++ b/samples/netcore/sample-requestslimits.yaml @@ -18,7 +18,7 @@ spec: template: spec: containers: - - image: ghcr.io/playfab/thundernetes-netcore:0.3.1 + - image: ghcr.io/playfab/thundernetes-netcore:0.3.2 name: thundernetes-sample-netcore ports: - containerPort: 80 # your game server port diff --git a/samples/netcore/sample-secondnodepool.yaml b/samples/netcore/sample-secondnodepool.yaml index 7e4687b8..3658b39b 100644 --- a/samples/netcore/sample-secondnodepool.yaml +++ b/samples/netcore/sample-secondnodepool.yaml @@ -18,7 +18,7 @@ spec: template: spec: containers: - - image: ghcr.io/playfab/thundernetes-netcore:0.3.1 + - image: ghcr.io/playfab/thundernetes-netcore:0.3.2 name: thundernetes-sample-netcore ports: - containerPort: 80 # your game server port diff --git a/samples/netcore/sample.yaml b/samples/netcore/sample.yaml index ed3ea8a9..5252c333 100644 --- a/samples/netcore/sample.yaml +++ b/samples/netcore/sample.yaml @@ -18,7 +18,7 @@ spec: template: spec: containers: - - image: ghcr.io/playfab/thundernetes-netcore:0.3.1 + - image: ghcr.io/playfab/thundernetes-netcore:0.3.2 name: thundernetes-sample-netcore ports: - containerPort: 80 # your game server port diff --git a/samples/openarena/sample.yaml b/samples/openarena/sample.yaml index ebe4875f..eccc4887 100644 --- a/samples/openarena/sample.yaml +++ b/samples/openarena/sample.yaml @@ -12,7 +12,7 @@ spec: template: spec: containers: - - image: ghcr.io/playfab/thundernetes-openarena:0.3.1 + - image: ghcr.io/playfab/thundernetes-openarena:0.3.2 name: thundernetes-sample-openarena ports: - containerPort: 27960 # your game server port