summary refs log tree commit diff
path: root/gogs/gogs-rc.yaml
blob: cf23de863cded86a30a708f090dea30620cb3ff4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
      volumes:
        - name: gogs-storage
          gcePersistentDisk:
            pdName: gogs-storage
            fsType: ext4