summaryrefslogtreecommitdiffstats
path: root/setup/projects/katrin/vars/pods.yml
blob: 133424229535526461423c5429d3e27b91036d7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# First port is exposed

pods:
  kaas:
    variant: "{{ ands_prefer_docker | default(false) | ternary('docker', 'centos') }}"
    centos:
      service: { host: "{{ katrin_node }}", ports: [ 80/8080, 443/8043 ] }
      sched: { replicas: 1, selector: { master: 1 } }
      selector: { master: 1 }
      images:
        - image: "centos/httpd-24-centos7"
          mappings: 
            - { name: "etc", path: "apache2-kaas-centos", mount: "/etc/httpd" }
            - { name: "www", path: "kaas", mount: "/opt/rh/httpd24/root/var/www/html" }
            - { name: "log", path: "apache2-kaas", mount: "/var/log/httpd24" }
          probes:
            - { port: 8080, path: '/index.html' }
    docker:
      service: { host: "{{ katrin_node }}", ports: [ 80/8080, 443/8043 ] }
      sched: { replicas: 1, selector: { master: 1 } }
      selector: { master: 1 }
      images:
        - image: "httpd:2.2"
          mappings: 
            - { name: "etc", path: "apache2-kaas-docker", mount: "/usr/local/apache2/conf" }
            - { name: "www", path: "kaas", mount: "/usr/local/apache2/htdocs" }
            - { name: "log", path: "apache2-kaas", mount: "/usr/local/apache2/logs" }
          probes:
            - { port: 8080, path: '/index.html' }

#pods:
#    kaas: "{{ kaas_project_config.pod_variants[ ands_prefer_docker | default(false) | ternary(1, 0) ] }}"



#oc:
#  - template: "[0-3]*"
#  - template: "[4-6]*"
#  - resource: "route/apache" 
#    oc: "expose svc/kaas --name apache --hostname=apache.{{ openshift_master_default_subdomain }}"
#  - template: "*"