Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Kubernetes files for Hackage mirroring
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: all-cabal-tool
labels:
app: all-cabal-tool
spec:
replicas: 1
minReadySeconds: 5
template:
metadata:
labels:
app: all-cabal-tool
spec:
volumes:
- name: all-cabal-tool-secret
secret:
secretName: all-cabal-tool-secret
- name: hackage-mirror-tool-secret
secret:
secretName: hackage-mirror-tool-secret
containers:
- name: all-cabal-tool
image: commercialhaskell/all-cabal-tool:latest
command: ["/usr/local/bin/run.sh"]
workingDir: /root
volumeMounts:
- name: all-cabal-tool-secret
readOnly: true
mountPath: /secret
- name: hackage-mirror-tool-secret
readOnly: true
mountPath: /secret-mirror
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: hackage-mirror-tool
labels:
app: hackage-mirror-tool
spec:
replicas: 1
minReadySeconds: 5
template:
metadata:
labels:
app: hackage-mirror-tool
spec:
volumes:
- name: hackage-mirror-tool-secret
secret:
secretName: hackage-mirror-tool-secret
containers:
- name: hackage-mirror-tool
image: snoyberg/hackage-mirror-tool:latest
command: ["/usr/local/bin/run-hackage-mirror-tool.sh"]
workingDir: /root
volumeMounts:
- name: hackage-mirror-tool-secret
readOnly: true
mountPath: /secret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.