File diff 0231f3ff468f → 00ddfc00b8a5
k8s/deployment_template.jsonnet
Show inline comments
...
 
@@ -10,13 +10,14 @@ function (slug, sha) {
 
      "items": [
 
        {
 
          "apiVersion": "v1",
 
          "kind": "Service",
 
          "metadata": {
 
            "labels": {
 
              "app": "symposion-app"
 
              "app": "symposion-app",
 
              "slug": slug
 
            },
 
            "name": app,
 
            "namespace": namespace
 
          },
 
          "spec": {
 
            "ports": [
...
 
@@ -24,34 +25,37 @@ function (slug, sha) {
 
                "port": 8000,
 
                "protocol": "TCP",
 
                "targetPort": 8000
 
              }
 
            ],
 
            "selector": {
 
              "app": "symposion-app"
 
              "app": "symposion-app",
 
              "slug": slug
 
            },
 
            "sessionAffinity": "None",
 
            "type": "ClusterIP"
 
          }
 
        },
 
        {
 
          "apiVersion": "extensions/v1beta1",
 
          "kind": "Deployment",
 
          "metadata": {
 
            "labels": {
 
              "app": "symposion-app"
 
              "app": "symposion-app",
 
              "slug": slug,
 
            },
 
            "name": app,
 
            "namespace": namespace
 
          },
 
          "spec": {
 
            "replicas": 1,
 
            "revisionHistoryLimit": 1,
 
            "selector": {
 
              "matchLabels": {
 
                "app": "symposion-app"
 
                "app": "symposion-app",
 
                "slug": slug
 
              }
 
            },
 
            "strategy": {
 
              "rollingUpdate": {
 
                "maxSurge": 1,
 
                "maxUnavailable": 1