paolomainardi / additronk8s-retrogames-kubernetes-controller Goto Github PK
View Code? Open in Web Editor NEWA retrogames kubernetes controller built in Javascript
License: Apache License 2.0
A retrogames kubernetes controller built in Javascript
License: Apache License 2.0
I can't seem to get Tetris running. It won't download the game even though I can download the zip using curl. There is no subdirectory inside the zip so I think the dir in tetris.yaml should just be a dot. I tried to change it to something else just to see if it made a difference but no luck.
$▶ k get all -n games
NAME READY STATUS RESTARTS AGE
pod/game-controller-5bbc64dc48-rxtsl 1/1 Running 0 122m
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/game-controller 1/1 1 1 131m
NAME DESIRED CURRENT READY AGE
replicaset.apps/game-controller-5bbc64dc48 1 1 1 131m
$▶ cat tetris.yaml
apiVersion: retro.sparkfabrik.com/v1
kind: Game
metadata:
name: tetris
namespace: games
spec:
name: "Tetris"
zipUrl: "http://vmc-set-games.s3.us-west-2.amazonaws.com/f-tetris.zip"
dir: "."
exe: "F-TETRIS.EXE"
$▶ k get game -n games
NAME GAME NAME GSURL STATUS AGE
tetris Tetris http://vmc-set-games.s3.us-west-2.amazonaws.com/f-tetris.zip Error 99s
$▶ k describe game tetris -n games
Name: tetris
Namespace: games
Labels:
Annotations:
API Version: retro.sparkfabrik.com/v1
Kind: Game
Metadata:
Creation Timestamp: 2021-10-26T22:17:30Z
Generation: 1
Managed Fields:
API Version: retro.sparkfabrik.com/v1
Fields Type: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
.:
f:kubectl.kubernetes.io/last-applied-configuration:
f:spec:
.:
f:dir:
f:exe:
f:name:
f:zipUrl:
Manager: kubectl-client-side-apply
Operation: Update
Time: 2021-10-26T22:17:30Z
API Version: retro.sparkfabrik.com/v1
Fields Type: FieldsV1
fieldsV1:
f:status:
.:
f:gameState:
Manager: unknown
Operation: Update
Time: 2021-10-26T22:17:30Z
Resource Version: 1614485
UID: defaf48f-2947-4c2b-910a-29aeed0d7164
Spec:
Dir: .
Exe: F-TETRIS.EXE
Name: Tetris
Zip URL: http://vmc-set-games.s3.us-west-2.amazonaws.com/f-tetris.zip
Status:
Game State: Error
Events:
Type Reason Age From Message
Warning Failed Download of game failed cause: "HTTP request failed"
Normal Downloading Starting to download game "Tetris" from: http://vmc-set-games.s3.us-west-2.amazonaws.com/f-tetris.zip
$▶ curl --output f-tetris.zip http://vmc-set-games.s3.us-west-2.amazonaws.com/f-tetris.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 94643 100 94643 0 0 267k 0 --:--:-- --:--:-- --:--:-- 267k
$▶ ls
f-tetris.zip
$▶ unzip f-tetris.zip
Archive: f-tetris.zip
inflating: F-TETRIS.CFG
inflating: F-TETRIS.TXT
inflating: F-TETRIS.ICO
inflating: F-TETRIS.EXE
inflating: F-TETRIS.DAT
inflating: F-TETRIS.HOF
$▶ ls
F-TETRIS.CFG F-TETRIS.DAT F-TETRIS.EXE F-TETRIS.HOF F-TETRIS.ICO F-TETRIS.TXT f-tetris.zip
Get rid of dockerhub and switch to GHCR registry
Cool PoC! I like!
One thing we all struggle with here is that most of the time keyboard controls are cryptic, but it sometimes work. Didn't get sound to work on chrome even single once (alt+s doesn't seem to do), but probably a matter of practice.
but really impressive and it got me back to digging my abandonware dvds from 90s, nostalgic ;)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.