Skip to content

Commit

Permalink
Merge pull request #46 from jmhardison/addteamcity
Browse files Browse the repository at this point in the history
add base teamcity
  • Loading branch information
jmhardison committed Sep 28, 2023
2 parents 996ea95 + 7377b74 commit 0c33b91
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 0 deletions.
67 changes: 67 additions & 0 deletions apps/jetbrains/teamcity/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
apiVersion: v1
kind: Service
metadata:
name: teamcity
namespace: jetbrains
labels:
app: teamcity
service: teamcity
spec:
ports:
- port: 8111
name: http
selector:
app: teamcity
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: teamcity
labels:
app: teamcity
version: v1
spec:
replicas: 1
selector:
matchLabels:
app: teamcity
version: v1
template:
metadata:
labels:
app: teamcity
version: v1
spec:
containers:
- name: teamcity
image: docker.io/jetbrains/teamcity-server
resources:
requests:
cpu: "300m"
imagePullPolicy: IfNotPresent #Always
ports:
- containerPort: 8111
volumeMounts:
- name: tc-datadir-volume
mountPath: /data/teamcity_server/datadir
- name: tc-logdir-volume
mountPath: /opt/teamcity/logs
volumes:
- name: tc-datadir-volume
persistentVolumeClaim:
claimName: teamcity-longhorn-volv-pvc
- name: tc-logdir-volume
persistentVolumeClaim:
claimName: teamcity-longhorn-volv-pvc
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: teamcity-longhorn-volv-pvc
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn
resources:
requests:
storage: 10Gi
9 changes: 9 additions & 0 deletions apps/jetbrains/teamcity/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: jetbrains

resources:
- namespace.yaml
- app.yaml
- app-ingressgw.yaml

9 changes: 9 additions & 0 deletions apps/jetbrains/teamcity/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: Namespace
metadata:
labels:
kubernetes.io/metadata.name: jetbrains
istio-injection: enabled
annotations:
operator.1password.io/auto-restart: "true"
name: jetbrains

0 comments on commit 0c33b91

Please sign in to comment.