Static agent deployment YAML for OpenShift
Deprecation of the static agent YAML
Changelog for OpenShift YAML file
The static OpenShift deployment YAML file for the Instana agent gets rendered from the Helm chart with common defaults, and can be obtained from this public GitHub repository.
Date and version
The following changelog provides the updates in each release:
-
2021-11-24-Version 1.2.2: Update image repositories for agent and leader elector to get pulled from IBM Cloud Container Registry.
-
2021-01-26-Version 1.2.1: See the following changes:
-
Introduce dangling anchors in the YAML file to prevent end users from pushing malformed or incomplete YAMLs to their clusters; replace the anchors with the actual values, or provide an addition to the document where the anchors are specified (neat for automation!)
-
Remove out-of-the-box
nodeSelector, now the Instana agent will be installed on all OpenShift nodes. -
Automatically assign the
privilegedSecurity Context Constraint to theinstana-agentservice account, so that no separateoc adm policy add-scc-to-user privileged -z instana-agentis required any loger; also, this allows us to ... -
Add via YAML the
instana-agentnamespace. For clusters where the namespace was created manually, executingoc apply -f instana-agent.yamlwill therefore result in the following benign warning:oc apply -f instana-agent.yamlWarning: oc apply should be used on resource created by either oc create --save-config or oc apply -
Removed hard-coded heap sizing for the Instana agent JVM via the
JAVA_OPTSenvironment variable, which caused oversights in which adding more memory to the container did not result in the Instana agent overcoming memory issues.
-
-
2020-10-23-Version 1.0.33: Use
dnsPolicy: ClusterFirstWithHostNetin theDaemonSettemplate spec as this should be the default for pods withhostNetwork: trueaccording to this Kubernetes documentation -
2020-10-13-Version 1.0.32: Update version to match helm chart. No visible changes.
-
2020-10-08-Version 1.0.31: Update version to match helm chart. No visible changes.
-
2020-08-17-Version 1.0.30: Update the
ClusterRoleto addpersistentvolumesandpersistentvolumeclaimsto the list of resources in thecoreapiGroup -
2020-07-16-Version 1.0.29: Update version to match helm chart. No visible changes.
-
2020-04-28-Version 1.0.28: Update the
ClusterRoleto addcronjobsto the list of resources in thebatchapiGroup -
2020-04-15-Version 1.0.27: See the following changes:
- Update the
ClusterRoleto adddaemonsetsandstatefulsetsto the list of resources in theappsapiGroup - Update the
ClusterRoleto add a new apiGroupnetworking.k8s.ioforingresses(available since Kubernetes v1.14) as it will be completely removed from theextensionsapiGroup in Kubernetes v1.22
- Update the
-
2020-03-25-Version 1.0.26: See the following changes:
- Add specific health check for leader elector sidecar to improve reliability of Kubernetes monitoring
- Add
app.kubernetes.io/versionlabel to all resources - Change
nameandapplabels to more standardapp.kubernetes.io/namelabel - Rename various resources:
- Rename
ConfigMapfrominstana-configurationtoinstana-agent - Rename
ClusterRolefrominstana-agent-roletoinstana-agent - Rename
ClusterRoleBindingfrominstana-agent-role-bindingtoinstana-agent - Rename
ServiceAccountfrominstana-admintoinstana-agent - Rename
Secretfrominstana-agent-secrettoinstana-agent
- Rename
- Add
ServiceAccountas a resource (previously it was created via command line)
-
2020-03-25-Version 1.0.25: No changes
-
2020-03-18-Version 1.0.24: Add
app.kubernetes.io/versionlabel toClusterRoleandDaemonSetresources, corresponding to equivalent helm chart1.0.24. -
2020-02-12: Increase liveness probe initial delay to 5 minutes, period to 10 seconds (the default), and timeout to 3 seconds to improve agent stability on very heavily loaded nodes.
-
2019-12-23: Add the
POD_IPenvironment variable to theinstana-agentcontainer to ensure that the agent will bind to that address instead of trying to detect a public IP address. -
2019-12-19: Remove specification of
hostin thelivenessProbefor both theinstana-agentandinstana-agent-leader-electorcontainers as we would like to explore other options. -
2019-12-13: See the following changes:
- Mount
/var/lib/containers/storagein theDaemonSetfor CRI-O support. - Specify
hostin thelivenessProbefor both theinstana-agentandinstana-agent-leader-electorcontainers.
- Mount
-
2019-10-14: See the following changes:
- Use
serviceAccountNameinstead of the deprecatedserviceAccountwithinapps.v1.DaemonSetSpec.template.spec. This has been deprecated at least since k8s 1.10. - [Fix] Ensure that the required field
selectoris set onapps.v1.DaemonSetSpec
- Use
-
2019-10-08: Update
DaemonSetto use apiVersionapps/v1instead of the deprecated and soon to be removedextensions/v1beta1. -
2019-06-03:
instana/leader-electorversion increased from0.5.1to0.5.4. -
2019-05-23: Added
/runas a default container mount. -
2019-04-03: Added
containerPortto agent daemonset. -
2019-03-13: Added
INSTANA_AGENT_POD_NAMEUID as leader election. -
2019-01-29: See the following changes:
- Added the
appsapiGroup. - Added the
patchpermission for endpoints.
- Added the
-
2019-01-04: Added all possible
matchermodes for secrets. -
2019-01-02: Updated
mountPathfrom/var/run/docker.socktovar/run.