Created
October 18, 2016 21:15
-
-
Save lazypower/0927092f330a0139a5c26b813a02093c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
labels: | |
app: gogs | |
name: gogs | |
namespace: default | |
spec: | |
replicas: 1 | |
selector: | |
app: gogs | |
template: | |
metadata: | |
labels: | |
app: gogs | |
spec: | |
containers: | |
- image: gogs/gogs:latest | |
imagePullPolicy: IfNotPresent | |
name: gogs | |
volumeMounts: | |
- mountPath: "/data" | |
name: persistentdata | |
resources: {} | |
ports: | |
- containerPort: 3000 | |
name: web | |
protocol: TCP | |
- containerPort: 22 | |
name: ssh | |
protocol: TCP | |
dnsPolicy: ClusterFirst | |
restartPolicy: Always | |
terminationGracePeriodSeconds: 30 | |
volumes: | |
- name: persistentdata | |
persistentVolumeClaim: | |
name: gogs-volume |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment