---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ghosts
spec:
selector:
matchLabels:
app: ghosts
template:
metadata:
labels:
app: ghosts
spec:
containers:
- name: ghosts
image: docker.io/rancherlabs/eio-ghosts:0.1.0
resources:
limits:
memory: "128Mi"
cpu: "500m"
env:
- name: ROCKET_ADDRESS
value: "0.0.0.0"
- name: GITHUB_ACCESS_TOKEN
valueFrom:
secretKeyRef:
key: token
name: credentials-secrets-read-access
- name: GITHUB_ORG
value: rancher-eio
ports:
- containerPort: 8000
name: api
nodeSelector:
kubernetes.io/arch: arm64
---
apiVersion: v1
kind: Service
metadata:
name: ghosts
spec:
selector:
app: ghosts
ports:
- port: 8000
targetPort: api