commit before rebuild

This commit is contained in:
pb
2024-07-29 15:45:32 +02:00
parent 559bac5eb9
commit 0c02f26c28
13 changed files with 346 additions and 26 deletions

View File

@@ -10,6 +10,7 @@ import (
type Config struct {
OcCatalogUrl string
Logs string
LokiUrl string
}
var instance *Config
@@ -48,6 +49,7 @@ func init(){
GetConfig().OcCatalogUrl = o.GetStringDefault("oc-catalog", "https://localhost:49618")
GetConfig().Logs = o.GetStringDefault("loglevel", "info")
GetConfig().LokiUrl = o.GetStringDefault("loki_url","http://127.0.0.1:3100")
}
func GetConfig() *Config {

View File

@@ -1,3 +1,4 @@
{
"oc-catalog" : "http://oc-catalog:49618/"
"oc-catalog" : "http://oc-catalog:49618/",
"loki_url" : "http://192.168.1.18:3100"
}

View File

@@ -1,3 +1,4 @@
{
"oc-catalog" : "http://localhost:49618/"
"oc-catalog" : "http://localhost:49618/",
"logs" : ""
}

View File

@@ -0,0 +1,16 @@
apiVersion: v1
kind: Pod
metadata:
name: test-monitor
spec:
containers:
- name: "oc-workflow-{{.CONTAINER_NAME}}"
image: docker.io/library/oc-monitor # Currently uses the local contenaird
imagePullPolicy: IfNotPresent # This should be removed once a registry has been set up
env:
- name: "OCMONITOR_ARGOFILE"
value: "{{.ARGO_FILE}}"
- name: "OCMONITOR_LOKIURL"
value: "{{.LOKI_URL}}" # !!!! In dev this must be replaced with the address of one of your interface (wifi, ethernet..)
restartPolicy: OnFailure