forked from open-telemetry/opentelemetry-collector-contrib
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from opsramp/release/v0.106.x
merge Release/v0.106.x to main
- Loading branch information
Showing
7 changed files
with
325 additions
and
4 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Base image | ||
FROM ubuntu:24.04 | ||
|
||
# Install necessary packages | ||
RUN apt-get update && apt-get install -y \ | ||
ca-certificates vim net-tools tcpdump \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Copy the pre-built OpenTelemetry Contrib Collector binary | ||
COPY otelcontribcol /usr/local/bin/otelcontribcol | ||
|
||
# Expose necessary ports | ||
EXPOSE 4317 55680 8888 | ||
|
||
# Start the collector with your config | ||
CMD ["/usr/bin/tail", "-f", "/dev/null"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
labels: | ||
app: otelcontribcol | ||
name: otelcontribcol | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: otelcontribcol | ||
labels: | ||
app: otelcontribcol | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- events | ||
- namespaces | ||
- namespaces/status | ||
- nodes | ||
- nodes/spec | ||
- pods | ||
- pods/status | ||
- replicationcontrollers | ||
- replicationcontrollers/status | ||
- resourcequotas | ||
- services | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- apps | ||
resources: | ||
- daemonsets | ||
- deployments | ||
- replicasets | ||
- statefulsets | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- extensions | ||
resources: | ||
- daemonsets | ||
- deployments | ||
- replicasets | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- batch | ||
resources: | ||
- jobs | ||
- cronjobs | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- autoscaling | ||
resources: | ||
- horizontalpodautoscalers | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: otelcontribcol | ||
labels: | ||
app: otelcontribcol | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: otelcontribcol | ||
subjects: | ||
- kind: ServiceAccount | ||
name: otelcontribcol | ||
namespace: default | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: otelcontribcol-deployment | ||
labels: | ||
app: otelcontribcol | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: otelcontribcol | ||
template: | ||
metadata: | ||
labels: | ||
app: otelcontribcol | ||
spec: | ||
serviceAccountName: otelcontribcol | ||
containers: | ||
- name: otelcontribcol | ||
image: docker.io/mithunbs/otelcontibcol | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- containerPort: 4317 | ||
- containerPort: 4318 | ||
- containerPort: 55680 | ||
- containerPort: 8888 | ||
command: ["/usr/bin/tail"] | ||
args: ["-f", "/dev/null"] |
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
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
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
Oops, something went wrong.