-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update counter names to avoid clashes with project_id, ad k8s configs
- Loading branch information
Showing
16 changed files
with
503 additions
and
41 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
21 changes: 21 additions & 0 deletions
21
kubernetes/decoupled/autoscaler-pkg/otel-collector/Kptfile
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,21 @@ | ||
# Copyright 2022 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
apiVersion: kpt.dev/v1 | ||
kind: Kptfile | ||
metadata: | ||
name: otel-collector | ||
annotations: | ||
config.kubernetes.io/local-config: "true" | ||
info: | ||
description: Config for OpenTelemetry Collector component of Spanner autoscaler |
48 changes: 48 additions & 0 deletions
48
kubernetes/decoupled/autoscaler-pkg/otel-collector/otel-collector.yaml
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,48 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: otel-collector | ||
namespace: spanner-autoscaler # kpt-set: ${namespace} | ||
labels: | ||
app: otel-collector | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: otel-collector | ||
template: | ||
metadata: | ||
labels: | ||
app: otel-collector | ||
spec: | ||
containers: | ||
- name: otel-collector | ||
image: otel/opentelemetry-collector-contrib:0.93.0 | ||
args: | ||
- --config | ||
- /etc/otel/config.yaml | ||
volumeMounts: | ||
- mountPath: /etc/otel/ | ||
name: otel-config | ||
volumes: | ||
- name: otel-config | ||
configMap: | ||
name: otel-config | ||
nodeSelector: | ||
iam.gke.io/gke-metadata-server-enabled: "true" | ||
serviceAccountName: otel-collector-sa | ||
automountServiceAccountToken: true | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: otel-collector | ||
namespace: spanner-autoscaler # kpt-set: ${namespace} | ||
spec: | ||
type: ClusterIP | ||
selector: | ||
app: otel-collector | ||
ports: | ||
- protocol: TCP | ||
port: 4317 | ||
targetPort: 4317 |
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
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,21 @@ | ||
# Copyright 2022 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
apiVersion: kpt.dev/v1 | ||
kind: Kptfile | ||
metadata: | ||
name: otel-collector | ||
annotations: | ||
config.kubernetes.io/local-config: "true" | ||
info: | ||
description: Config for OpenTelemetry Collector component of Spanner autoscaler |
48 changes: 48 additions & 0 deletions
48
kubernetes/unified/autoscaler-pkg/otel-collector/otel-collector.yaml
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,48 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: otel-collector | ||
namespace: spanner-autoscaler # kpt-set: ${namespace} | ||
labels: | ||
app: otel-collector | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: otel-collector | ||
template: | ||
metadata: | ||
labels: | ||
app: otel-collector | ||
spec: | ||
containers: | ||
- name: otel-collector | ||
image: otel/opentelemetry-collector-contrib:0.93.0 | ||
args: | ||
- --config | ||
- /etc/otel/config.yaml | ||
volumeMounts: | ||
- mountPath: /etc/otel/ | ||
name: otel-config | ||
volumes: | ||
- name: otel-config | ||
configMap: | ||
name: otel-config | ||
nodeSelector: | ||
iam.gke.io/gke-metadata-server-enabled: "true" | ||
serviceAccountName: otel-collector-sa | ||
automountServiceAccountToken: true | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: otel-collector | ||
namespace: spanner-autoscaler # kpt-set: ${namespace} | ||
spec: | ||
type: ClusterIP | ||
selector: | ||
app: otel-collector | ||
ports: | ||
- protocol: TCP | ||
port: 4317 | ||
targetPort: 4317 |
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.