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
client.CoreApi.CreateNamespacedPod( | |
"default", | |
new V1Pod( | |
Metadata: new V1ObjectMeta(Name: "iis"), | |
Spec: new V1PodSpec( | |
Containers: new List<V1Container> | |
{ | |
new V1Container( | |
Image: "microsoft/iis:nanoserver", | |
Name: "iis", |
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
V1PodList podList = client.CoreApi.ListNamespacedPod("default"); | |
foreach (V1Pod pod in podList.Items) | |
Console.WriteLine($"Pod={pod.Metadata.Name}"); |
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: v1 | |
kind: ConfigMap | |
metadata: | |
name: jaeger-configuration | |
namespace: monitoring | |
labels: | |
app: jaeger | |
jaeger-infra: configuration | |
data: | |
span-storage-type: elasticsearch |
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/v1beta1 | |
kind: StatefulSet | |
metadata: | |
name: elasticsearch | |
namespace: monitoring | |
labels: | |
app: elasticsearch | |
jaeger-infra: elasticsearch-statefulset | |
spec: | |
serviceName: elasticsearch |
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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: jaeger-query | |
namespace: monitoring | |
labels: | |
app: jaeger | |
jaeger-infra: query-deployment | |
spec: | |
replicas: 1 |
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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: jaeger-collector | |
namespace: monitoring | |
labels: | |
app: jaeger | |
jaeger-infra: collector-deployment | |
spec: | |
replicas: 1 |
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: myapp-deployment | |
namespace: default | |
labels: | |
app: myapp | |
spec: | |
replicas: 3 | |
selector: |
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
package grpc_server | |
import ( | |
"github.com/opentracing/opentracing-go" | |
"github.com/grpc-ecosystem/go-grpc-middleware/tracing/opentracing" | |
"github.com/grpc-ecosystem/go-grpc-middleware" | |
"google.golang.org/grpc" | |
"github.com/masroorhasan/myapp/tracer" | |
) |
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
package tracer | |
import ( | |
"io" | |
"github.com/uber/jaeger-client-go/config" | |
jprom "github.com/uber/jaeger-lib/metrics/prometheus" | |
) | |
func NewTracer() (opentracing.Tracer, io.Closer, error) { |
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: myapp-deployment | |
namespace: default | |
labels: | |
app: myapp | |
spec: | |
replicas: 3 | |
selector: |
OlderNewer