Skip to content

Instantly share code, notes, and snippets.

@joejulian
Created August 20, 2020 19:14
Show Gist options
  • Save joejulian/e9e2fdbacbf9ca76f617ff81f8fdcf86 to your computer and use it in GitHub Desktop.
Save joejulian/e9e2fdbacbf9ca76f617ff81f8fdcf86 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: helloworld
spec:
containers:
- name: helloworld
image: golang:1.13-buster
command:
- bash
- -c
- |
base64 -d <<< cGFja2FnZSBtYWluCgppbXBvcnQgKAogICAgImZtdCIKICAgICJuZXQvaHR0cCIKKQoKZnVuYyBtYWluKCkgewogICAgaHR0cC5IYW5kbGVGdW5jKCIvIiwgZnVuYyh3IGh0dHAuUmVzcG9uc2VXcml0ZXIsIHIgKmh0dHAuUmVxdWVzdCkgewogICAgICAgIGZtdC5GcHJpbnRmKHcsICJIZWxsbywgeW91J3ZlIHJlcXVlc3RlZDogJXNcbiIsIHIuVVJMLlBhdGgpCiAgICB9KQoKICAgIGh0dHAuTGlzdGVuQW5kU2VydmUoIjo4MCIsIG5pbCkKfQo= > main.go
go run main.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment