Select Git revision
deployment.yaml 657 B
apiVersion: apps/v1
kind: Deployment
metadata:
name: buildserverdemo
spec:
selector:
matchLabels:
app: buildserverdemo
replicas: 1
template:
metadata:
labels:
app: buildserverdemo
spec:
containers:
- name: buildserverdemo
image: lab.it.hs-hannover.de:4567/htf-cmh/vis_buildserver_gitlabci_demo/buildserverdemo:{VERSION}
imagePullSecrets:
- name: gitlab-auth
---
apiVersion: v1
kind: Service
metadata:
name: buildserverdemo
labels:
app: buildserverdemo
spec:
type: LoadBalancer
ports:
-name: demoLB
port: 80
targetPort: 8080
selector:
app: buildserverdemo