Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding logrus to initcontainer #50

Merged
merged 1 commit into from
Nov 4, 2021
Merged

Conversation

dgkanatsios
Copy link
Collaborator

Partially fixes #36

Added logrus to initcontainer, for structured logging. For better tracking, we needed the namespace of the GameServer CRD so I added a new environment variable to pass it into initcontainer.

## PortsToExpose

This is a list of containerName/portName tuples: These are the ports that you want to be exposed in the [Worker Node/VM](https://kubernetes.io/docs/concepts/architecture/nodes/) when the Pod is created. The way this works is that each Pod you create will have >=1 number of containers. There, each container will have its own *Ports* definition. If a port in this definition is included in the *portsToExpose* array, this port will be publicly exposed in the Node/VM. This is accomplished by the creation of a **hostPort** value for each of the container ports you want to expose. The reason we need this is that because i) you may want to use some ports on your Pod containers for other purposed than players connecting to it and ii) a portName must be unique within a container. Ports assigned are in the port range 10000-50000.
# GameServerBuild definition
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CRLF vs LF again, sorry :(

Copy link
Collaborator

@khaines khaines Nov 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

always LF :) CRLF takes up twice the space :)

images:
- name: controller
newName: thundernetes-operator
newTag: 52d2641
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

52d2641

this is re-generated every time I run make. We need to better understand what kustomize does during building

@dgkanatsios dgkanatsios added area/user-experiences Developer experience and suggestions on how to use thundernetes, installation, getting up & running enhancement New feature or request labels Oct 31, 2021
@dgkanatsios dgkanatsios merged commit 557d01f into master Nov 4, 2021
@dgkanatsios dgkanatsios deleted the initcontainerlogrus branch November 4, 2021 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/user-experiences Developer experience and suggestions on how to use thundernetes, installation, getting up & running enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Structured Log output
2 participants