commit before rebuild
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
{
|
||||
"oc-catalog" : "http://oc-catalog:49618/"
|
||||
"oc-catalog" : "http://oc-catalog:49618/",
|
||||
"loki_url" : "http://192.168.1.18:3100"
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
{
|
||||
"oc-catalog" : "http://localhost:49618/"
|
||||
"oc-catalog" : "http://localhost:49618/",
|
||||
"logs" : ""
|
||||
}
|
||||
16
conf/monitor_pod_template.yml
Normal file
16
conf/monitor_pod_template.yml
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user