[PR #5046] [MERGED] kubernetes deployment file #17609

Closed
opened 2025-11-02 14:25:51 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/5046
Author: @BetaCat0
Created: 10/9/2018
Status: Merged
Merged: 10/29/2018
Merged by: @techknowlogick

Base: masterHead: k8s-deployment


📝 Commits (2)

  • a550c6a k8s deployment
  • 99d345d Merge branch 'master' into k8s-deployment

📊 Changes

1 file changed (+107 additions, -0 deletions)

View changed files

contrib/k8s/gitea.yml (+107 -0)

📄 Description

This is a simple deployment file for kubernetes cluster(yaml format).
It will create a namespace named gitea and set up related Deployment, Service and Ingress.

  1. Edit this file to adapt to the actual environment
  2. Using kubectl apply -f to apply it.

Note1: If you're unwilling to use Ingress, you can simply comment it and change gitea-web part like following:

# Using node-port mode
apiVersion: v1
kind: Service
metadata:
  name: gitea-web
  namespace: gitea
  labels:
    app: gitea-web
spec:
  ports:
  - port: 80
    targetPort: 3000
    # comment next line to gain a random one.
    nodePort: 30080
    name: http
  selector:
    app: gitea

Note2: Before applying your config file, you should read comments carefully.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/5046 **Author:** [@BetaCat0](https://github.com/BetaCat0) **Created:** 10/9/2018 **Status:** ✅ Merged **Merged:** 10/29/2018 **Merged by:** [@techknowlogick](https://github.com/techknowlogick) **Base:** `master` ← **Head:** `k8s-deployment` --- ### 📝 Commits (2) - [`a550c6a`](https://github.com/go-gitea/gitea/commit/a550c6a1efc79863d059328812e78ca2b4e6e354) k8s deployment - [`99d345d`](https://github.com/go-gitea/gitea/commit/99d345d84d41141548518008da61f743414f8387) Merge branch 'master' into k8s-deployment ### 📊 Changes **1 file changed** (+107 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `contrib/k8s/gitea.yml` (+107 -0) </details> ### 📄 Description This is a simple deployment file for kubernetes cluster(yaml format). It will create a namespace named **gitea** and set up related ``Deployment``, ``Service`` and ``Ingress``. 1. Edit this file to adapt to the actual environment 2. Using ``kubectl apply -f`` to apply it. **Note1:** If you're unwilling to use ``Ingress``, you can simply comment it and change ``gitea-web`` part like following: ``` # Using node-port mode apiVersion: v1 kind: Service metadata: name: gitea-web namespace: gitea labels: app: gitea-web spec: ports: - port: 80 targetPort: 3000 # comment next line to gain a random one. nodePort: 30080 name: http selector: app: gitea ``` **Note2:** Before applying your config file, you **should** read comments carefully. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 14:25:51 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17609