Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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