Skip to content

Instantly share code, notes, and snippets.

@jozefizso
Last active April 11, 2021 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jozefizso/c34fe1223bf00420f9a2326773de1920 to your computer and use it in GitHub Desktop.
Save jozefizso/c34fe1223bf00420f9a2326773de1920 to your computer and use it in GitHub Desktop.
TeamCity @ microk8s
#!/bin/bash
helm install gitlab gitlab/gitlab \
--set global.hosts.domain=golab.lan \
--set global.hosts.https=false \
--set certmanager-issuer.email=jozef.izso@gmail.com
# list public services
microk8s kubectl get ingress -lrelease=gitlab
# get ingress IP
microk8s kubectl get service/gitlab-nginx-ingress-controller
# initial root login password
microk8s kubectl get secret gitlab-gitlab-initial-root-password -ojsonpath='{.data.password}' | base64 --decode ; echo
#!/bin/bash
microk8s kubectl apply -f .
#!/bin/bash
microk8s kubectl get all --all-namespaces
apiVersion: apps/v1
kind: Deployment
metadata:
name: teamcity-deployment
spec:
selector:
matchLabels:
app: teamcity
strategy:
type: Recreate
template:
metadata:
labels:
app: teamcity
spec:
containers:
- name: teamcity
image: jetbrains/teamcity-server:2020.2.3
ports:
- containerPort: 8111
volumeMounts:
- name: teamcity-data
mountPath: "/data/teamcity_server/datadir"
volumes:
- name: teamcity-data
persistentVolumeClaim:
claimName: teamcity-volume
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: teamcity-volume
spec:
accessModes:
- ReadWriteOnce
volumeMode: Filesystem
resources:
requests:
storage: 12Gi
---
apiVersion: v1
kind: Service
metadata:
name: teamcity
labels:
app: teamcity
spec:
selector:
app: teamcity
type: LoadBalancer
ports:
- port: 8111
targetPort: 8111
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment