Skip to content

Instantly share code, notes, and snippets.

@curx
Last active April 10, 2023 18:51
Show Gist options
  • Select an option

  • Save curx/b82946730dd86268637cf001b2119e50 to your computer and use it in GitHub Desktop.

Select an option

Save curx/b82946730dd86268637cf001b2119e50 to your computer and use it in GitHub Desktop.
Kubernetes manifest-file for soft-serve
## desc: create application for soft-serve
## author: Thorsten Schifferdecker <https://github.com/curx>
## license: Apache 2.0
apiVersion: v1
kind: Namespace
metadata:
name: soft-serve
labels:
app: soft-serve
app.kubernetes.io/name: soft-serve
app.kubernetes.io/instance: gitd
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: repositories-data
namespace: soft-serve
labels:
app: soft-serve
app.kubernetes.io/name: soft-serve
app.kubernetes.io/instance: gitd
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: "5Gi"
---
apiVersion: v1
kind: Service
metadata:
name: git
namespace: soft-serve
labels:
app: soft-serve
app.kubernetes.io/name: soft-serve
app.kubernetes.io/instance: gitd
spec:
type: ClusterIP
selector:
app: soft-serve
app.kubernetes.io/name: soft-serve
app.kubernetes.io/instance: gitd
ports:
- name: ssh
port: 23231
protocol: TCP
targetPort: 23231
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: soft-serve
namespace: soft-serve
labels:
app: soft-serve
app.kubernetes.io/name: soft-serve
app.kubernetes.io/instance: gitd
app.kubernetes.io/version: "v0.4.7"
spec:
replicas: 1
selector:
matchLabels:
app: soft-serve
app.kubernetes.io/name: soft-serve
app.kubernetes.io/instance: gitd
template:
metadata:
labels:
app: soft-serve
app.kubernetes.io/name: soft-serve
app.kubernetes.io/instance: gitd
spec:
automountServiceAccountToken: false
enableServiceLinks: false
containers:
- image: ghcr.io/charmbracelet/soft-serve:v0.4.7
imagePullPolicy: IfNotPresent
name: soft-serve
resources: {}
volumeMounts:
- mountPath: /soft-serve
name: repos-data
securityContext:
fsGroup: 65510
fsGroupChangePolicy: OnRootMismatch
runAsGroup: 65510
runAsUser: 65510
terminationGracePeriodSeconds: 30
volumes:
- name: repos-data
persistentVolumeClaim:
claimName: repositories-data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment