Mercurial > code > home > repos > reposync
comparison deploy.yaml @ 4:f714a6a7842c
start new web view for hgand github syncing
author | drewp@bigasterisk.com |
---|---|
date | Fri, 24 Jul 2020 14:42:08 -0700 |
parents | |
children | 6f38aa08408d |
comparison
equal
deleted
inserted
replaced
3:4077903a9520 | 4:f714a6a7842c |
---|---|
1 apiVersion: apps/v1 | |
2 kind: Deployment | |
3 metadata: | |
4 name: reposync | |
5 spec: | |
6 replicas: 1 | |
7 selector: | |
8 matchLabels: | |
9 app: reposync | |
10 template: | |
11 metadata: | |
12 labels: | |
13 app: reposync | |
14 spec: | |
15 containers: | |
16 - name: reposync | |
17 image: bang5:5000/reposync_image | |
18 imagePullPolicy: "Always" | |
19 securityContext: {capabilities: {add: [SYS_PTRACE]}} | |
20 ports: | |
21 - containerPort: 10001 | |
22 volumeMounts: | |
23 - {name: my, mountPath: /my} | |
24 volumes: | |
25 - { name: my, persistentVolumeClaim: { claimName: my } } | |
26 affinity: | |
27 nodeAffinity: | |
28 requiredDuringSchedulingIgnoredDuringExecution: | |
29 nodeSelectorTerms: | |
30 - matchExpressions: | |
31 - key: "kubernetes.io/hostname" | |
32 operator: In | |
33 values: ["bang"] | |
34 --- | |
35 apiVersion: v1 | |
36 kind: Service | |
37 metadata: | |
38 name: reposync | |
39 spec: | |
40 ports: | |
41 - {port: 80, targetPort: 10001, name: http} | |
42 selector: | |
43 app: reposync | |
44 | |
45 |