Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update kube-rbac-proxy to latest #21

Merged
merged 2 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,12 @@ For the sake of simplicity, we are keeping the convention of the same version fo
#### Supported Platforms
- Linux
- Alpine
- K8s type of deployment
> Available init containers:
> - [Java agent for linux x86_64](https://hub.docker.com/r/lightruncom/k8s-operator-init-java-agent-linux/tags)
> - [Java agent for linux arm64 ](https://hub.docker.com/r/lightruncom/k8s-operator-init-java-agent-linux-arm64)
> - [Java agent for alpine x86_64](https://hub.docker.com/r/lightruncom/k8s-operator-init-java-agent-alpine/tags)
> - [Java agent for alpine arm64 ](https://hub.docker.com/r/lightruncom/k8s-operator-init-java-agent-alpine-arm64)
- K8s type of resources
- Deployment
- Application's language
- Java
Expand Down
24 changes: 12 additions & 12 deletions examples/lightrunjavaagent.yaml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
apiVersion: agents.lightrun.com/v1beta
kind: LightrunJavaAgent
metadata:
name: example-cr
name: example-cr
spec:
###############################################################################################
# Fields that you need to change if you want to try operator with your own deployment
###############################################################################################
# Name of the deployment that you are going to patch.
# Has to be in the same namespace
deploymentName: sample-deployment
deploymentName: sample-deployment
# List of container names inside the pod of the deployment
# If container not mentioned here it will be not patched
containerSelector:
- app
- app
# Agent config will override default configuration with provided values
# You can find list of available options here https://docs.lightrun.com/jvm/agent-configuration/
agentEnvVarName: JAVA_TOOL_OPTIONS
# Name of the secret where agent will take `lightrun_key` and `pinned_cert_hash` from
# Has to be in the same namespace
secretName: lightrun-secrets

secretName: lightrun-secrets

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

---
apiVersion: v1
metadata:
metadata:
name: lightrun-secrets
stringData:
# Lightrun key you can take from the server UI at the "setup agent" step
lightrun_key: <lightrun_key_from_ui>
# Server certificate hash. It is ensuring that agent is connected to the right Lightrun server
pinned_cert_hash: <pinned_cert_hash>
kind: Secret
type: Opaque
type: Opaque
2 changes: 1 addition & 1 deletion helm-chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
- --upstream=http://127.0.0.1:8080/
- --logtostderr=true
- --v=0
image: {{ .Values.controllerManager.kubeRbacProxy.image.repository }}:{{ .Values.controllerManager.kubeRbacProxy.image.tag | default .Chart.AppVersion }}
image: {{ .Values.controllerManager.kubeRbacProxy.image.repository }}:{{ .Values.controllerManager.kubeRbacProxy.image.tag }}
name: kube-rbac-proxy
ports:
- containerPort: 8443
Expand Down
10 changes: 5 additions & 5 deletions helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ controllerManager:
kubeRbacProxy:
image:
repository: gcr.io/kubebuilder/kube-rbac-proxy
tag: v0.11.0
tag: v0.15.0
resources:
limits:
cpu: 500m
Expand Down Expand Up @@ -46,10 +46,10 @@ controllerManager:
# purpose: stage
## If you want to set node selector for operator deployment, delete the `{}` in the line above
## and uncomment this example block
# label-key1: "label-value1"
# label-key2: "label-value2"
# label-key1: "label-value1"
# label-key2: "label-value2"

## Controller configuration
## Controller configuration
managerConfig:
# -- Log level: 1 - 5
# Higher number - more logs
Expand Down Expand Up @@ -89,5 +89,5 @@ metricsService:
targetPort: 8443
type: ClusterIP

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