Skip to content

Instantly share code, notes, and snippets.

@lordofthejars
Created February 27, 2021 10:28
Show Gist options
  • Save lordofthejars/1a4822dd16c2dbbafd7250bcb5880ca2 to your computer and use it in GitHub Desktop.
Save lordofthejars/1a4822dd16c2dbbafd7250bcb5880ca2 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: gitea-deployment
spec:
replicas: 1
selector:
matchLabels:
app: gitea-demo
template:
metadata:
labels:
app: gitea-demo
spec:
containers:
- name: gitea-demo
image: gitea/gitea:1.13.2
env:
- name: USER_UID
value: "1000"
- name: USER_GID
value: "1000"
- name: SECRET_KEY
value: gitea1234
imagePullPolicy: Always
ports:
- containerPort: 3000
---
apiVersion: v1
kind: Service
metadata:
name: gitea
spec:
selector:
app: gitea-demo
ports:
- protocol: TCP
port: 3000
targetPort: 3000
type: LoadBalancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment