aboutsummaryrefslogtreecommitdiff
path: root/deploy/environments/production/main.jsonnet
blob: b2827542cbe9b8e603205c8bc713e9eab433c53b (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
local k = import 'ksonnet-util/kausal.libsonnet';
local util = import 'util/main.libsonnet';

function(tag, namespace, envSlug=null, projectPathSlug=null)
  (util.inlineSpec('https://control.kube.cat:6443', namespace, envSlug, projectPathSlug))
  + {
    _config:: self.data._config,
    catinator:: self.data.catinator,
    data: (import 'catinator.libsonnet') + {
      _config+:: {
        catinator+: {
          image+: {
            tag: tag,
          },
          config: importstr '../../../config.toml',
        },
      },
      catinator+: {
        local egress = util.cilium.egressNatPolicy,
        local statefulset = k.apps.v1.statefulSet,
        local container = k.core.v1.container,

        statefulset+:
          statefulset.spec.template.spec.withInitContainers([
            container.new('wait-for-egress', 'docker.io/busybox:latest')
            + container.withCommand(['/bin/sleep', '30']),
          ]),
      },
    },
  }
s='insertions'>+0 2024-02-26update d3fus phone wg pubkeyMarcin Maselko-1/+1 2024-02-26added d3fus nass to wg configMarcin Maselko-0/+9 2024-02-21set minecraft memoryMax Audron-0/+1 2024-02-21add minecraft server and move palworld to games moduleMax Audron-3/+56 2024-02-21set network manually for ns serversMax Audron-0/+51 2024-02-20update nixpkgs-unstableMax Audron-3/+3 2024-02-19update d3fus fritzbox wg portMarcin Maselko-1/+1 2024-02-19add xonotic serverMax Audron-1/+10