Files
fedora-infra_ansible/roles/openshift-apps/openscanhub/templates/deployment-resalloc-server.yml.j2
2025-01-14 08:37:30 +10:00

72 lines
2.3 KiB
Django/Jinja

---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: resalloc-server
app.kubernetes.io/component: resalloc-server
app.kubernetes.io/instance: resalloc-server
app.kubernetes.io/name: resalloc-server
app.kubernetes.io/part-of: openscanhub
app.openshift.io/runtime: python
app.openshift.io/runtime-namespace: openscanhub
name: resalloc-server
namespace: openscanhub
spec:
replicas: 1
selector:
matchLabels:
app: resalloc-server
strategy:
type: Recreate
template:
metadata:
labels:
app: resalloc-server
deployment: resalloc-server
spec:
containers:
- image: quay.io/openscanhub-fedora-infra/resalloc-server:{{ env }}
imagePullPolicy: Always
name: resalloc-server
ports:
- containerPort: 49100
protocol: TCP
volumeMounts:
- mountPath: /etc/resallocserver/server.yaml
name: etc-resallocserver-server-configmap
subPath: server.yaml
- mountPath: /etc/resallocserver/pools.yaml
name: etc-resallocserver-pools-configmap
subPath: pools.yaml
- mountPath: /etc/resallocserver/vm-provisioning/config
name: vm-provisioning-configmap
subPath: config
- mountPath: /var/lib/resallocserver/.aws/credentials
name: aws-credentials-configmap
subPath: credentials
- mountPath: /var/lib/resallocserver/.ssh/id_rsa
name: aws-openscanhub-key
subPath: id_rsa
- mountPath: /var/lib/resallocserver/.ssh/id_rsa.pub
name: aws-openscanhub-key
subPath: id_rsa.pub
restartPolicy: Always
volumes:
- name: etc-resallocserver-server-configmap
configMap:
name: etc-resallocserver-server-config
- name: etc-resallocserver-pools-configmap
configMap:
name: etc-resallocserver-pools-config
- name: vm-provisioning-configmap
configMap:
name: vm-provisioning-config
- name: aws-credentials-configmap
configMap:
name: aws-credentials-config
- name: aws-openscanhub-key
secret:
defaultMode: 400
secretName: aws-openscanhub-key