Skip to content

Instantly share code, notes, and snippets.

@robertBrem
Created November 10, 2016 19:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertBrem/31b7ad46c8ee531c8dcd575989454825 to your computer and use it in GitHub Desktop.
Save robertBrem/31b7ad46c8ee531c8dcd575989454825 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: gogs
spec:
replicas: 1
template:
metadata:
labels:
name: gogs
spec:
containers:
- resources:
name: gogs
image: gogs/gogs:0.9.97
ports:
- name: gogs-port
containerPort: 3000
volumeMounts:
- mountPath: /data
name: data
volumes:
- name: data
hostPath:
path: /home/ubuntu/gogs/data
nodeSelector:
name: node68
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment