VOL-1739 [Create Kubernetes Probes for Simulated OLT Adapter]

Change-Id: Ib0ef80daf7843b27f95d87894a829a4826190881
diff --git a/internal/pkg/config/config.go b/internal/pkg/config/config.go
index 5cf0dc0..57280a7 100644
--- a/internal/pkg/config/config.go
+++ b/internal/pkg/config/config.go
@@ -39,6 +39,8 @@
 	default_Topic            = "simulated_olt"
 	default_CoreTopic        = "rwcore"
 	default_OnuNumber        = 1
+	default_ProbeHost        = ""
+	default_ProbePort        = 8080
 )
 
 // AdapterFlags represents the set of configurations used by the read-write adaptercore service
@@ -58,6 +60,8 @@
 	LogLevel         int
 	OnuNumber        int
 	Banner           bool
+	ProbeHost        string
+	ProbePort        int
 }
 
 func init() {
@@ -81,6 +85,8 @@
 		LogLevel:         default_LogLevel,
 		OnuNumber:        default_OnuNumber,
 		Banner:           default_Banner,
+		ProbeHost:        default_ProbeHost,
+		ProbePort:        default_ProbePort,
 	}
 	return &adapterFlags
 }
@@ -129,6 +135,12 @@
 	help = fmt.Sprintf("Show startup banner log lines")
 	flag.BoolVar(&so.Banner, "banner", default_Banner, help)
 
+	help = fmt.Sprintf("The address on which to listen to answer liveness and readiness probe queries over HTTP.")
+	flag.StringVar(&(so.ProbeHost), "probe_host", default_ProbeHost, help)
+
+	help = fmt.Sprintf("The port on which to listen to answer liveness and readiness probe queries over HTTP.")
+	flag.IntVar(&(so.ProbePort), "probe_port", default_ProbePort, help)
+
 	flag.Parse()
 
 	containerName := getContainerInfo()