Cursed Technology

kubeajsd:
  .data
msg:
  .asciz "Hello, world!\n"
meme:
  .text
  .global _main
_main: mov $0x02000004, %rax
kubeaa: mov $1, %rdi /*
apiVersion: apps/v1
kind: Deployment
metadata:
  kube2: aa */
  name: nop
spec:
  kube5: mov msg@GOTPCREL(%rip), %rsi /*
  replicas: 1
  selector:
    matchLabels:
      app: Nop
  kube6: aa */
  template:
    metadata:
      labels:
        app: Nop
    kube3: mov $13, %rdx /*
    spec:
      containers:
      - image: gcr.io/google_containers/echoserver:1.0
        imagePullPolicy: Always
        name: echoserver
        ports:
        - containerPort: 8080
    kube4: aa */
    kube9:
      syscall
      mov   $0x02000001, %rax
      xor   $0, %rdi
      syscall
From the tweet

Feels kind of stuck in a time loop:
a valid Kubernetes config that is also valid x86 assembly and will print “Hello World” when compiled by an AT&T assembler.

The same yaml also needs 1.21 Gigawatts and accelerate to 88 miles per hour to return to the nineteen seventies.


Posted

in

by

Tags: