Nexus Repository Proxy for Airgap Instana Agent
Airgap environment is commonly seen in a tightly controlled environment. No internet connection is allowed. While Instana agent needs the internet connection to get the latest image and also the sensors for the monitoring requirement.
One way is to install the static agent with all the dependencies bundled. But you lack off the feature of auto version upgrading for the agent.
To tackle this, if the environment allows a repository proxy to connect to the internet, we will still be able to deploy the dynamic agent.
Setup Nexus in OpenShift
We will use the Nexus OSS version and create the K8s deployment from scratch.
Create a namespace called as nexus, create the PVC
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nexus-pvc
namespace: nexus
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 50Gi
Create the deployment with the plain Nexus image,
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .app }}
labels:
app: {{ .app }}
spec:
replicas: 1
selector:
matchLabels:
app: {{ .app }}
template:
metadata:
labels:
app: {{ .app }}
spec:
containers:
- name: {{ .app }}…