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
$▶ 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
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