Last active
January 5, 2019 21:16
-
-
Save nikibobi/f8af9f6e35d3e34cd921959a0ebca052 to your computer and use it in GitHub Desktop.
Gitea kubernetes config
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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: gitea | |
labels: | |
app: gitea | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: gitea | |
template: | |
metadata: | |
labels: | |
app: gitea | |
spec: | |
containers: | |
- name: gitea | |
image: gitea/gitea:latest | |
ports: | |
- containerPort: 3000 | |
name: gitea | |
- containerPort: 22 | |
name: git-ssh | |
env: | |
- name: USER_UID | |
value: "1000" | |
- name: USER_GID | |
value: "1000" | |
volumeMounts: | |
- mountPath: /data | |
name: data | |
volumes: | |
- name: data | |
hostPath: | |
path: /home/user1/Gitea | |
type: Directory | |
nodeSelector: | |
gitea-host: "true" | |
--- | |
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: gitea | |
spec: | |
selector: | |
app: gitea | |
ports: | |
- name: gitea-http | |
port: 3000 | |
targetPort: gitea | |
nodePort: 30000 | |
- name: gitea-ssh | |
port: 2222 | |
targetPort: git-ssh | |
type: NodePort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment