Skip to content

Instantly share code, notes, and snippets.

@cclloyd
Created October 17, 2019 04:32
Show Gist options
  • Save cclloyd/918170c0ee1759a2cc9f9fff66d06c44 to your computer and use it in GitHub Desktop.
Save cclloyd/918170c0ee1759a2cc9f9fff66d06c44 to your computer and use it in GitHub Desktop.
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: archivewarrior
labels:
app: archivewarrior
spec:
replicas: 1
selector:
matchLabels:
app: archivewarrior
template:
metadata:
labels:
app: archivewarrior
spec:
containers:
- name: archivewarrior
image: archiveteam/warrior-dockerfile
imagePullPolicy: IfNotPresent
#env:
# - name: OPTIONAL_VARS
# value: GOHERE
---
kind: Service
apiVersion: v1
metadata:
name: archivewarrior
spec:
selector:
app: archivewarrior
ports:
- protocol: TCP
name: archivewarrior-http
port: 8001
targetPort: 8001
type: NodePort # (Can set to LoadBalancer if you have MetalLB installed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment