manifest.yaml 1.08 KB
Newer Older
1
---
2
apiVersion: apps/v1
3 4 5 6 7
kind: Deployment
metadata:
  name: galaxy-cwl-is
spec:
  replicas: 1
8 9 10 11
  selector:
    matchLabels:
      app: ${NAMESPACE}
      role: front
12 13 14
  template:
    metadata:
      labels:
15
        app: ${NAMESPACE}
16 17 18 19
        role: front
    spec:
      containers:
      - name: galaxy-cwl-is
20
        image: ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHA}
21 22
        imagePullPolicy: Always
        ports:
Hervé  MENAGER's avatar
Hervé MENAGER committed
23
        - containerPort: 8080
24 25 26 27 28 29 30 31
      imagePullSecrets:
        - name: registry-gitlab
---
apiVersion: v1
kind: Service
metadata:
  name: galaxy-cwl-is
  labels:
32
    app: ${NAMESPACE}
33 34 35
    role: front
spec:
  selector:
36
    app: ${NAMESPACE}
37 38 39
    role: front
  ports:
  - name: http
Hervé  MENAGER's avatar
Hervé MENAGER committed
40
    port: 8080
41 42 43 44 45 46 47 48
    protocol: TCP
  type: ClusterIP
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: galaxy-cwl-is
  labels:
49
    app: ${NAMESPACE}
50 51
    role: front
  annotations:
52
    kubernetes.io/ingress.class: ${INGRESS_CLASS}
53 54
spec:
  rules:
55
    - host: ${PUBLIC_URL}
56 57 58 59
      http:
        paths:
        - backend:
            serviceName: galaxy-cwl-is
Hervé  MENAGER's avatar
Hervé MENAGER committed
60
            servicePort: 8080
61
          path: /