Compare commits
No commits in common. "b891b74d4b719c6a3370a4b074f8f57ea41c87b4" and "a3ca2124534120ea5af91aaa36300ba3121287c2" have entirely different histories.
b891b74d4b
...
a3ca212453
|
@ -2,9 +2,6 @@ apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "twitchsingstools.fullname" . }}
|
name: {{ include "twitchsingstools.fullname" . }}
|
||||||
annotations:
|
|
||||||
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
|
||||||
checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
|
|
||||||
labels:
|
labels:
|
||||||
{{- include "twitchsingstools.labels" . | nindent 4 }}
|
{{- include "twitchsingstools.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
|
@ -16,9 +13,6 @@ spec:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
{{- include "twitchsingstools.selectorLabels" . | nindent 8 }}
|
{{- include "twitchsingstools.selectorLabels" . | nindent 8 }}
|
||||||
annotations:
|
|
||||||
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
|
||||||
checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
|
|
||||||
spec:
|
spec:
|
||||||
{{- with .Values.imagePullSecrets }}
|
{{- with .Values.imagePullSecrets }}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
|
@ -31,11 +25,11 @@ spec:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default "latest" }}"
|
image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 5353
|
containerPort: 80
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
|
{{- if .Values.serviceAccount.create -}}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: tstools-data
|
name: {{ include "twitchsingstools.serviceAccountName" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "twitchsingstools.labels" . | nindent 4 }}
|
{{- include "twitchsingstools.labels" . | nindent 4 }}
|
||||||
spec:
|
{{- with .Values.serviceAccount.annotations }}
|
||||||
accessModes:
|
annotations:
|
||||||
- ReadWriteOnce
|
{{- toYaml . | nindent 4 }}
|
||||||
resources:
|
{{- end }}
|
||||||
requests:
|
{{- end -}}
|
||||||
storage: {{ .Values.storageSize }}
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
|
|
||||||
image:
|
image:
|
||||||
repository: imartyn/twitchsingstools
|
repository: twitchsingstools
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
|
@ -39,8 +39,6 @@ irc:
|
||||||
|
|
||||||
twitchapp: {}
|
twitchapp: {}
|
||||||
|
|
||||||
storageSize: 10Gi
|
|
||||||
|
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 80
|
port: 80
|
||||||
|
@ -53,8 +51,7 @@ ingress:
|
||||||
kubernetes.io/ingress.class: nginx
|
kubernetes.io/ingress.class: nginx
|
||||||
hosts:
|
hosts:
|
||||||
- host: twitchsingstools.ing.martyn.berlin
|
- host: twitchsingstools.ing.martyn.berlin
|
||||||
paths:
|
paths: []
|
||||||
- /
|
|
||||||
tls:
|
tls:
|
||||||
- secretName: tstools-tls
|
- secretName: tstools-tls
|
||||||
hosts:
|
hosts:
|
||||||
|
|
4
main.go
4
main.go
|
@ -196,12 +196,10 @@ func main() {
|
||||||
Database: *persistentData,
|
Database: *persistentData,
|
||||||
Config: config,
|
Config: config,
|
||||||
}
|
}
|
||||||
|
myBot.Start()
|
||||||
}
|
}
|
||||||
go func() {
|
go func() {
|
||||||
rgb.YPrintf("[%s] Starting webserver on port %s\n", irc.TimeStamp(), "5353")
|
rgb.YPrintf("[%s] Starting webserver on port %s\n", irc.TimeStamp(), "5353")
|
||||||
webserver.HandleHTTP(&myBot)
|
webserver.HandleHTTP(&myBot)
|
||||||
}()
|
}()
|
||||||
if ircOauthPath != "" {
|
|
||||||
myBot.Start()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue