github.com/munnerz/test-infra@v0.0.0-20190108210205-ce3d181dc989/config/jobs/kubernetes-sigs/kind/kind-presubmits.yaml (about) 1 # sigs.k8s.io/kind presubmits 2 presubmits: 3 kubernetes-sigs/kind: 4 - name: pull-kind-build 5 decorate: true 6 path_alias: sigs.k8s.io/kind 7 always_run: true 8 spec: 9 containers: 10 - image: gcr.io/k8s-testimages/kubekins-e2e:v20181218-134e718ec-master 11 command: 12 - "./hack/ci/build-all.sh" 13 # trialing this on kind jobs, we are using FQDN for in-cluster services, now 14 # so use ndots 1 to improve dns performance 15 # TODO(bentheelder): consider setting this at the cluster level instead 16 dnsConfig: 17 options: 18 - name: ndots 19 value: "1" 20 - name: pull-kind-verify 21 decorate: true 22 path_alias: sigs.k8s.io/kind 23 always_run: true 24 spec: 25 containers: 26 - image: gcr.io/k8s-testimages/kubekins-e2e:v20181218-134e718ec-experimental 27 command: 28 - "./hack/verify-all.sh" 29 # trialing this on kind jobs, we are using FQDN for in-cluster services, now 30 # so use ndots 1 to improve dns performance 31 # TODO(bentheelder): consider setting this at the cluster level instead 32 dnsConfig: 33 options: 34 - name: ndots 35 value: "1" 36 # conformance test against kubernetes master branch with `kind`, skipping 37 # serial tests so it runs in ~20m 38 - name: pull-kind-conformance-parallel 39 labels: 40 preset-service-account: "true" 41 preset-bazel-scratch-dir: "true" 42 preset-bazel-remote-cache-enabled: "true" 43 preset-dind-enabled: "true" 44 always_run: true 45 spec: 46 containers: 47 - image: gcr.io/k8s-testimages/kubekins-e2e:v20181218-134e718ec-master 48 env: 49 # skip serial tests and run with --ginkgo-parallel 50 - name: "PARALLEL" 51 value: "true" 52 args: 53 - "--job=$(JOB_NAME)" 54 - "--root=/go/src" 55 - "--repo=sigs.k8s.io/kind=$(PULL_REFS)" 56 - "--repo=k8s.io/kubernetes=master" 57 - "--service-account=/etc/service-account/service-account.json" 58 - "--upload=gs://kubernetes-jenkins/pr-logs" 59 - "--scenario=execute" 60 - "--" 61 # the script must run from kubernetes, but we're checking out kind 62 - "bash" 63 - "--" 64 - "-c" 65 - "cd ./../../k8s.io/kubernetes && ./../../sigs.k8s.io/kind/hack/ci/e2e.sh" 66 # we need privileged mode in order to do docker in docker 67 securityContext: 68 privileged: true 69 # kind needs /lib/modules and cgroups from the host 70 volumeMounts: 71 - mountPath: /lib/modules 72 name: modules 73 readOnly: true 74 - mountPath: /sys/fs/cgroup 75 name: cgroup 76 resources: 77 requests: 78 # these are both a bit below peak usage during build 79 # this is mostly for building kubernetes 80 memory: "9000Mi" 81 # during the tests more like 3-20m is used 82 cpu: 2000m 83 volumes: 84 - name: modules 85 hostPath: 86 path: /lib/modules 87 type: Directory 88 - name: cgroup 89 hostPath: 90 path: /sys/fs/cgroup 91 type: Directory 92 # trialing this on kind jobs, we are using FQDN for in-cluster services, now 93 # so use ndots 1 to improve dns performance 94 # TODO(bentheelder): consider setting this at the cluster level instead 95 dnsConfig: 96 options: 97 - name: ndots 98 value: "1" 99 # conformance test against kubernetes release-1.12 branch with `kind`, skipping 100 # serial tests so it runs in ~20m 101 - name: pull-kind-conformance-parallel-1-12 102 labels: 103 preset-service-account: "true" 104 preset-bazel-scratch-dir: "true" 105 preset-bazel-remote-cache-enabled: "true" 106 preset-dind-enabled: "true" 107 always_run: true 108 spec: 109 containers: 110 - image: gcr.io/k8s-testimages/kubekins-e2e:v20181218-134e718ec-master 111 env: 112 # skip serial tests and run with --ginkgo-parallel 113 - name: "PARALLEL" 114 value: "true" 115 args: 116 - "--job=$(JOB_NAME)" 117 - "--root=/go/src" 118 - "--repo=sigs.k8s.io/kind=$(PULL_REFS)" 119 - "--repo=k8s.io/kubernetes=release-1.12" 120 - "--service-account=/etc/service-account/service-account.json" 121 - "--upload=gs://kubernetes-jenkins/pr-logs" 122 - "--scenario=execute" 123 - "--" 124 # the script must run from kubernetes, but we're checking out kind 125 - "bash" 126 - "--" 127 - "-c" 128 - "cd ./../../k8s.io/kubernetes && ./../../sigs.k8s.io/kind/hack/ci/e2e.sh" 129 # we need privileged mode in order to do docker in docker 130 securityContext: 131 privileged: true 132 # kind needs /lib/modules and cgroups from the host 133 volumeMounts: 134 - mountPath: /lib/modules 135 name: modules 136 readOnly: true 137 - mountPath: /sys/fs/cgroup 138 name: cgroup 139 resources: 140 requests: 141 # these are both a bit below peak usage during build 142 # this is mostly for building kubernetes 143 memory: "9000Mi" 144 # during the tests more like 3-20m is used 145 cpu: 2000m 146 volumes: 147 - name: modules 148 hostPath: 149 path: /lib/modules 150 type: Directory 151 - name: cgroup 152 hostPath: 153 path: /sys/fs/cgroup 154 type: Directory 155 # trialing this on kind jobs, we are using FQDN for in-cluster services, now 156 # so use ndots 1 to improve dns performance 157 # TODO(bentheelder): consider setting this at the cluster level instead 158 dnsConfig: 159 options: 160 - name: ndots 161 value: "1" 162 # conformance test against kubernetes release-1.11 branch with `kind`, skipping 163 # serial tests so it runs in ~20m 164 - name: pull-kind-conformance-parallel-1-11 165 labels: 166 preset-service-account: "true" 167 preset-bazel-scratch-dir: "true" 168 preset-bazel-remote-cache-enabled: "true" 169 preset-dind-enabled: "true" 170 always_run: true 171 spec: 172 containers: 173 - image: gcr.io/k8s-testimages/kubekins-e2e:v20181218-134e718ec-master 174 env: 175 # skip serial tests and run with --ginkgo-parallel 176 - name: "PARALLEL" 177 value: "true" 178 args: 179 - "--job=$(JOB_NAME)" 180 - "--root=/go/src" 181 - "--repo=sigs.k8s.io/kind=$(PULL_REFS)" 182 - "--repo=k8s.io/kubernetes=release-1.11" 183 - "--service-account=/etc/service-account/service-account.json" 184 - "--upload=gs://kubernetes-jenkins/pr-logs" 185 - "--scenario=execute" 186 - "--" 187 # the script must run from kubernetes, but we're checking out kind 188 - "bash" 189 - "--" 190 - "-c" 191 - "cd ./../../k8s.io/kubernetes && ./../../sigs.k8s.io/kind/hack/ci/e2e.sh" 192 # we need privileged mode in order to do docker in docker 193 securityContext: 194 privileged: true 195 # kind needs /lib/modules and cgroups from the host 196 volumeMounts: 197 - mountPath: /lib/modules 198 name: modules 199 readOnly: true 200 - mountPath: /sys/fs/cgroup 201 name: cgroup 202 resources: 203 requests: 204 # these are both a bit below peak usage during build 205 # this is mostly for building kubernetes 206 memory: "9000Mi" 207 # during the tests more like 3-20m is used 208 cpu: 2000m 209 volumes: 210 - name: modules 211 hostPath: 212 path: /lib/modules 213 type: Directory 214 - name: cgroup 215 hostPath: 216 path: /sys/fs/cgroup 217 type: Directory 218 # trialing this on kind jobs, we are using FQDN for in-cluster services, now 219 # so use ndots 1 to improve dns performance 220 # TODO(bentheelder): consider setting this at the cluster level instead 221 dnsConfig: 222 options: 223 - name: ndots 224 value: "1"