about summary refs log tree commit diff
path: root/gogs/gogs-rc.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'gogs/gogs-rc.yaml')
-rw-r--r--gogs/gogs-rc.yaml44
1 files changed, 44 insertions, 0 deletions
diff --git a/gogs/gogs-rc.yaml b/gogs/gogs-rc.yaml
new file mode 100644
index 000000000000..5a236bb79038
--- /dev/null
+++ b/gogs/gogs-rc.yaml
@@ -0,0 +1,44 @@
+apiVersion: v1
+kind: ReplicationController
+metadata:
+  name: gogs
+spec:
+  replicas: 1
+  selector:
+    app: gogs
+  template:
+    metadata:
+      labels:
+        app: gogs
+    spec:
+      containers:
+        - image: gogs/gogs
+          imagePullPolicy: Always
+          name: gogs
+          ports:
+            - containerPort: 22
+            - containerPort: 3000
+          volumeMounts:
+            - name: gogs-storage
+              mountPath: /data
+        - image: nginx:1.9
+          name: nginx
+          ports:
+            - containerPort: 80
+            - containerPort: 443
+          volumeMounts:
+            - name: gogs-tls
+              mountPath: /etc/nginx/ssl
+            - name: gogs-nginx
+              mountPath: /etc/nginx/conf.d
+      volumes:
+        - name: gogs-storage
+          gcePersistentDisk:
+            pdName: gogs-storage
+            fsType: ext4
+        - name: gogs-tls
+          secret:
+            secretName: gogs-tls
+        - name: gogs-nginx
+          secret:
+            secretName: gogs-nginx