Skip to content

Commit 290875f

Browse files
author
Leonid Podolinskiy
authored
update kube-rbac-proxy to latest (#21)
* update kube-rbac-proxy to latest * add list of available images to docs
1 parent c85bb9a commit 290875f

File tree

4 files changed

+24
-19
lines changed

4 files changed

+24
-19
lines changed

docs/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,12 @@ For the sake of simplicity, we are keeping the convention of the same version fo
122122
#### Supported Platforms
123123
- Linux
124124
- Alpine
125-
- K8s type of deployment
125+
> Available init containers:
126+
> - [Java agent for linux x86_64](https://hub.docker.com/r/lightruncom/k8s-operator-init-java-agent-linux/tags)
127+
> - [Java agent for linux arm64 ](https://hub.docker.com/r/lightruncom/k8s-operator-init-java-agent-linux-arm64)
128+
> - [Java agent for alpine x86_64](https://hub.docker.com/r/lightruncom/k8s-operator-init-java-agent-alpine/tags)
129+
> - [Java agent for alpine arm64 ](https://hub.docker.com/r/lightruncom/k8s-operator-init-java-agent-alpine-arm64)
130+
- K8s type of resources
126131
- Deployment
127132
- Application's language
128133
- Java

examples/lightrunjavaagent.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
apiVersion: agents.lightrun.com/v1beta
22
kind: LightrunJavaAgent
33
metadata:
4-
name: example-cr
4+
name: example-cr
55
spec:
66
###############################################################################################
77
# Fields that you need to change if you want to try operator with your own deployment
88
###############################################################################################
99
# Name of the deployment that you are going to patch.
1010
# Has to be in the same namespace
11-
deploymentName: sample-deployment
11+
deploymentName: sample-deployment
1212
# List of container names inside the pod of the deployment
1313
# If container not mentioned here it will be not patched
1414
containerSelector:
15-
- app
15+
- app
1616
# Agent config will override default configuration with provided values
1717
# You can find list of available options here https://docs.lightrun.com/jvm/agent-configuration/
1818
agentEnvVarName: JAVA_TOOL_OPTIONS
1919
# Name of the secret where agent will take `lightrun_key` and `pinned_cert_hash` from
2020
# Has to be in the same namespace
21-
secretName: lightrun-secrets
22-
21+
secretName: lightrun-secrets
2322

2423
###############################################################################################
2524
# Fields that are mostly fine with default values for most deployments
2625
###############################################################################################
27-
# Init container with agent. Differes by agent version and platform that it will be used for. For now supported platforms are `linux` and `alpine`
28-
initContainer:
29-
# parts that may vary here are
26+
# Init container with agent. Differes by agent version and platform that it will be used for. For now supported platforms are `linux` and `alpine`
27+
initContainer:
28+
# parts that may vary here are
3029
# platform - `linux/alpine`
3130
# agent version - first part of the tag (1.7.0)
3231
# init container sub-version - last part of the tag (init.0)
32+
# List of available images in the README.md
3333
image: "lightruncom/k8s-operator-init-java-agent-linux:latest"
3434
# Volume name in case you have some convention in the names
3535
sharedVolumeName: lightrun-agent-init
@@ -38,7 +38,7 @@ spec:
3838
sharedVolumeMountPath: "/lightrun"
3939
# Hostname of the server. Will be different for on-prem ans single-tenant installations
4040
# For saas it is app.lightrun.com
41-
serverHostname: app.lightrun.com
41+
serverHostname: app.lightrun.com
4242
# Env var that will be patched with agent path.
4343
# If your application not using any, recommended option is to use "JAVA_TOOL_OPTIONS"
4444
# Also may be "_JAVA_OPTIONS", "JAVA_OPTS"
@@ -47,7 +47,7 @@ spec:
4747
agentConfig:
4848
max_log_cpu_cost: "2"
4949
# agentCliFlags is used if need to pass additional flags to the agent,
50-
# that are not part of configuration file.
50+
# that are not part of configuration file.
5151
# https://docs.lightrun.com/jvm/agent-configuration/#additional-command-line-flags
5252
# Example below
5353
# agentCliFlags: --lightrun_extra_class_path=<PATH_TO_JAR>:<PATH_TO_JAR>,lightrun_init_wait_time_ms
@@ -62,12 +62,12 @@ spec:
6262

6363
---
6464
apiVersion: v1
65-
metadata:
65+
metadata:
6666
name: lightrun-secrets
6767
stringData:
6868
# Lightrun key you can take from the server UI at the "setup agent" step
6969
lightrun_key: <lightrun_key_from_ui>
7070
# Server certificate hash. It is ensuring that agent is connected to the right Lightrun server
7171
pinned_cert_hash: <pinned_cert_hash>
7272
kind: Secret
73-
type: Opaque
73+
type: Opaque

helm-chart/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ spec:
3232
- --upstream=http://127.0.0.1:8080/
3333
- --logtostderr=true
3434
- --v=0
35-
image: {{ .Values.controllerManager.kubeRbacProxy.image.repository }}:{{ .Values.controllerManager.kubeRbacProxy.image.tag | default .Chart.AppVersion }}
35+
image: {{ .Values.controllerManager.kubeRbacProxy.image.repository }}:{{ .Values.controllerManager.kubeRbacProxy.image.tag }}
3636
name: kube-rbac-proxy
3737
ports:
3838
- containerPort: 8443

helm-chart/values.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ controllerManager:
77
kubeRbacProxy:
88
image:
99
repository: gcr.io/kubebuilder/kube-rbac-proxy
10-
tag: v0.11.0
10+
tag: v0.15.0
1111
resources:
1212
limits:
1313
cpu: 500m
@@ -46,10 +46,10 @@ controllerManager:
4646
# purpose: stage
4747
## If you want to set node selector for operator deployment, delete the `{}` in the line above
4848
## and uncomment this example block
49-
# label-key1: "label-value1"
50-
# label-key2: "label-value2"
49+
# label-key1: "label-value1"
50+
# label-key2: "label-value2"
5151

52-
## Controller configuration
52+
## Controller configuration
5353
managerConfig:
5454
# -- Log level: 1 - 5
5555
# Higher number - more logs
@@ -89,5 +89,5 @@ metricsService:
8989
targetPort: 8443
9090
type: ClusterIP
9191

92-
## Comment out if you want to use Release name as prefix to the resource naming
92+
## Comment out if you want to use Release name as prefix to the resource naming
9393
nameOverride: lightrun-k8s-operator

0 commit comments

Comments
 (0)