Skip to content

Instantly share code, notes, and snippets.

@gangliao
Last active July 5, 2018 10:42
Show Gist options
  • Save gangliao/94e295d744086721108efcc41f30c083 to your computer and use it in GitHub Desktop.
Save gangliao/94e295d744086721108efcc41f30c083 to your computer and use it in GitHub Desktop.
teamcity on kubernetes
---
apiVersion: v1
kind: Service
metadata:
name: teamcity-server-instance
spec:
ports:
- nodePort: 8111
port: 80
targetPort: 8111
selector:
app: teamcity-server-instance
type: NodePort
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: teamcity-server-instance
spec:
replicas: 1
template:
metadata:
labels:
app: teamcity-server-instance
spec:
containers:
- image: jetbrains/teamcity-server:2017.2
name: teamcity-server-instance
ports:
- containerPort: 8111
volumeMounts:
- mountPath: /opt/teamcity/logs
name: log
- mountPath: /data/teamcity_server/datadir
name: data
volumes:
- name: log
hostPath:
path: /search/odin/teamcity_server/logs/
- name: data
hostPath:
path: /search/odin/teamcity_server/_data/
nodeSelector:
ci: teamcity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment