diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/deploy.yaml	Fri Jul 24 14:42:08 2020 -0700
@@ -0,0 +1,45 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: reposync
+spec:
+  replicas: 1
+  selector:
+    matchLabels:
+      app: reposync
+  template:
+    metadata:
+      labels:
+        app: reposync
+    spec:
+      containers:
+        - name: reposync
+          image: bang5:5000/reposync_image
+          imagePullPolicy: "Always"
+          securityContext: {capabilities: {add: [SYS_PTRACE]}}
+          ports:
+          - containerPort: 10001
+          volumeMounts:
+            - {name: my, mountPath: /my}
+      volumes:
+        - { name: my, persistentVolumeClaim: { claimName: my } }
+      affinity:
+        nodeAffinity:
+          requiredDuringSchedulingIgnoredDuringExecution:
+            nodeSelectorTerms:
+            - matchExpressions:
+              - key: "kubernetes.io/hostname"
+                operator: In
+                values: ["bang"]
+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: reposync
+spec:
+  ports:
+  - {port: 80, targetPort: 10001, name: http}
+  selector:
+    app: reposync
+
+