37 lines
720 B
YAML
37 lines
720 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: haskell-deployment
|
||
|
labels:
|
||
|
app: haskell
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: haskell
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: haskell
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: haskell
|
||
|
image: haskell
|
||
|
command: ["sleep"]
|
||
|
args: ["infinity"]
|
||
|
env:
|
||
|
- name: SECRET_SAUCE_RECIPE
|
||
|
valueFrom:
|
||
|
secretKeyRef:
|
||
|
name: supersecret
|
||
|
key: flag
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
data:
|
||
|
flag: 'SUdDVEYtS0xBUlJJT3tkb250X3BlZWtfaW5fb3RoZXJfcGVvcGxlc19zZWNyZXRzIX0K'
|
||
|
kind: Secret
|
||
|
metadata:
|
||
|
name: supersecret
|
||
|
namespace: default
|
||
|
type: Opaque
|