-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
117 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM ubuntu:16.04 | ||
RUN useradd -ms /bin/bash unity | ||
WORKDIR /home/unity | ||
COPY builds/Server_Linux/linuxserver.x86_64 /home/unity/ | ||
COPY builds/Server_Linux/linuxserver_Data /home/unity/linuxserver_Data/ | ||
RUN chown -R unity:unity /home/unity/linuxserver* | ||
USER unity | ||
|
||
EXPOSE 7777-7787 | ||
ENV SERVERS_REGISTRY_URL http://jpgjsr.azurewebsites.net/api/servers | ||
ENV HEARTBEAT_PERIOD 3 | ||
|
||
CMD ["./linuxserver.x86_64", "-logFile", "/dev/stdout", "-batchmode", "-nographics"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: drones-server | ||
labels: | ||
app: drones-server | ||
spec: | ||
type: LoadBalancer | ||
selector: | ||
app: drones-server | ||
ports: | ||
- protocol: UDP | ||
port: 5701 | ||
--- | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: drones-server | ||
spec: | ||
strategy: | ||
type: Recreate | ||
template: | ||
metadata: | ||
labels: | ||
app: drones-server | ||
spec: | ||
containers: | ||
- image: morshemesh/unitydronesserver | ||
name: drones-server | ||
ports: | ||
- containerPort: 5701 | ||
protocol: UDP | ||
name: udp-port |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#! /bin/sh | ||
# https://docs.microsoft.com/en-us/azure/container-service/kubernetes/container-service-kubernetes-windows-walkthrough | ||
|
||
# Creat Resource Group | ||
az group create --name morshe-k8s-drones --location westeurope | ||
|
||
# Create Cluster | ||
az acs create --orchestrator-type kubernetes --resource-group morshe-k8s-drones --name morshe-k8s-drones --service-principal 4856f1fc-6060-4916-a541-47cf138c1bbb --client-secret /vUcloiV+xABtlSLhD28G7vW4U4dWuPQEXIPDD3d/jA= --generate-ssh-keys --agent-count 1 --master-count 1 --orchestrator-version 1.7 | ||
|
||
# Must for first time only ; Install Kubectl CLI. If you are using Windows than kubectl is in program files (x86). Make sure it is in your PATH variable | ||
az acs kubernetes install-cli | ||
|
||
# Connect kubectl to cluster | ||
az acs kubernetes get-credentials --resource-group=morshe-k8s-drones --name=morshe-k8s-drones | ||
|
||
# Proxy to the dashboard | ||
kubectl proxy | ||
|
||
# OR::: | ||
kubectl get pods --all-namespaces | ||
# copy *dashboard* name | ||
kubectl port-forward kubernetes-dashboard-N-A-M-E-X-X-X 9090 --namespace kube-system | ||
# browse http://localhost:9090/ |
Submodule paddle-soccer
added at
f61ac9