Last active
April 11, 2021 19:25
-
-
Save jozefizso/c34fe1223bf00420f9a2326773de1920 to your computer and use it in GitHub Desktop.
TeamCity @ microk8s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
microk8s kubectl apply -f . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
microk8s kubectl get all --all-namespaces |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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