AppDynamics オペレータコンテナイメージ

このページでは、カスタム Splunk AppDynamics オペレータコンテナイメージを作成する方法、または事前作成されたイメージを使用して内部レジストリに保存する方法について説明します。

この手順は、次の場合に必要です。

  • カスタム Splunk AppDynamics オペレータコンテナイメージを作成する必要がある
  • DockerHub または RedHat Registry で、事前作成された Splunk AppDynamics オペレータイメージを使用し、内部レジストリに保存する必要がある

それ以外の場合は、デフォルトで、Splunk AppDynamics オペレータポッドは Splunk AppDynamics DockerHub リポジトリまたは RedHat Registry にある最新の事前作成された Splunk AppDynamics オペレータコンテナイメージを直接プルして使用できます。

カスタム Splunk AppDynamics オペレータイメージの作成

ダウンロードポータルのダウンロードパッケージには、Splunk AppDynamics オペレータのコンテナイメージを作成および展開する必要があるファイルが含まれています。

Splunk AppDynamics オペレータイメージを作成するために使用されるベースイメージに応じて、ポータルで使用できるパッケージには次の 2 つのタイプがあります。

  • Alpine Linux ベース
  • Rhel Linux ベース(OpenShift クラスタにのみ推奨)

Alpine および Rhel Linux のダウンロードパッケージのディレクトリ構造は次のとおりです。

Alpine Linux AMD
cluster-agent
├── cluster-agent-operator.yaml
├── appdynamics-operator-alpine-linux-amd64-21.12.0-88
├── bin
├── appdynamics-operator
├── Dockerfile
├── LICENSE
└── scripts
├── ensure-user.sh
├── start-operator.sh
├── cluster-agent-operator-openshift-1.15-or-less.yaml
├── cluster-agent-operator-openshift.yaml
├── cluster-agent.yaml
├── infraviz.yaml
├── infraviz-pod-security-policy.yaml
├── infraviz-security-context-constraint-openshift.yaml
├── README-alpine.md
└── docker
└── helm-charts
├── Chart.yaml
├── README.md
├── crds
├── templates
└── values.yaml
Alpine Linux ARM
cluster-agent
├── cluster-agent-operator.yaml
├── appdynamics-operator-alpine-linux-arm64-21.12.0-88
├── bin
├── appdynamics-operator
├── Dockerfile
├── LICENSE
└── scripts
├── ensure-user.sh
├── start-operator.sh
├── cluster-agent-operator-openshift-1.15-or-less.yaml
├── cluster-agent-operator-openshift.yaml
├── cluster-agent.yaml
├── infraviz.yaml
├── infraviz-pod-security-policy.yaml
├── infraviz-security-context-constraint-openshift.yaml
├── README-alpine.md
└── docker
└── helm-charts
├── Chart.yaml
├── README.md
├── crds
├── templates
└── values.yaml
Rhel Linux ubi8
cluster-agent
├── cluster-agent-operator.yaml
├── appdynamics-operator-rhel-linux-amd64-21.12.0-88
├── bin
├── appdynamics-operator
├── Dockerfile-rhel
├── LICENSE
└── scripts
├── ensure-user.sh
├── start-operator.sh
├── cluster-agent-operator-openshift-1.15-or-less.yaml
├── cluster-agent-operator-openshift.yaml
├── cluster-agent.yaml
├── infraviz.yaml
├── infraviz-pod-security-policy.yaml
├── infraviz-security-context-constraint-openshift.yaml
├── README-rhel.md
└── docker
└── helm-charts
├── Chart.yaml
├── README.md
├── crds
├── templates
└── values.yaml

Build the Custom Splunk AppDynamics Operator Image

  1. Change the directory to the Operator directory:
    $ cd appdynamics-operator-alpine-linux-amd64-21.12.0-88/
  2. Build and tag a dockerFor example, to build and tag the image version 21.12.0 using the latest alpine version on Docker Hub registry for the account name johndoe:
    Alpine Linux
    $ docker build -t <registryname>/<accountname>/cluster-agent-operator:<Operator_Version> .
    Rhel Linux ubi8
    $ docker build -t <registryname>/<accountname>/cluster-agent-operator:<Operator_Version> -f Dockerfile-rhel .
    Alpine Linux
    $ docker build -t docker.io/johndoe/cluster-agent-operator:21.12.0 .
    Rhel Linux ubi8
    $ docker build -t docker.io/johndoe/cluster-agent-operator:21.12.0 -f Dockerfile-rhel .
  3. Push the image:For example, pushing the image version 21.12.0 to Docker Hub registry for the account name Johndoe :
    $ docker push <registryname>/<accountname>/cluster-agent-operator:<Operator_Version>
    $ docker push docker.io/johndoe/cluster-agent-operator:21.12.0

Use Pre-Built Splunk AppDynamics Operator Image

You can also use pre-built Alpine-based or Rhel-based Splunk AppDynamics Operator images to an internal registry.

Operator Image

You can use the pre-built Alpine-based Splunk AppDynamics Operator image from the DockerHub account.

  1. Log in to your Docker Hub account:
    $ docker login docker.io -u <your-username> -p <your-password>
  2. Pull the image:For example, to pull the scratch-based Splunk AppDynamics Operator image version 21.12.0:
    $ docker pull docker.io/appdynamics/cluster-agent-operator:<Operator_Version>
    $ docker pull docker.io/appdynamics/cluster-agent-operator:21.12.0
To push this image to the internal registry or accounts:
  1. Rename the image:For example:
    $ docker tag docker.io/appdynamics/cluster-agent-operator:<Operator_Version> <registryname>/<accountname>/cluster-agent-operator:<Operator_Version>
    $ docker tag docker.io/appdynamics/cluster-agent-operator:21.12.0 docker.io/johndoe/cluster-agent-operator:21.12.0
  2. Push the image:For example, to push the image version 21.12.0 to the Docker Hub registry for the account name Johndoe:
    $ docker push <registryname>/<accountname>/cluster-agent-operator:<Operator_Version>
    $ docker push docker.io/johndoe/cluster-agent-operator:21.12.0

    See RHELOperator Image

Rhel Operator Image

Alternatively, you can use the pre-built Rhel-based Splunk AppDynamics Operator Image from theRedhat Container Registryaccount.

注: To use Redhat-based Splunk AppDynamics Operator, you may need to adjust your firewall settings as suggested by Redhat. Hence, you need to enable outbound connections to the following hostnames:cdn.quay.iocdn01.quay.iocdn02.quay.iocdn03.quay.io
  1. Log in to Red Hat Registry using your Customer Portal credentials:
    $ docker login registry.connect.redhat.com -u <your-username> -p <your-password>
  2. Pull the image:For example, to pull the Rhel-based Splunk AppDynamics Operator version 21.12.0:
    $ docker pull registry.connect.redhat.com/appdynamics/cluster-agent-operator:<Operator_Version>
    $ docker pull registry.connect.redhat.com/appdynamics/cluster-agent-operator:21.12.0

You can now use the Splunk AppDynamics Operator image.

To push this image to the internal registry, or to other accounts:

You can now use the Splunk AppDynamics Operator image.To push this image to the internal registry, or to other accounts:
  1. Rename the image:For example:
    $ docker tag registry.connect.redhat.com/appdynamics/cluster-agent-operator:<Operator_Version> <registryname>/<accountname>/cluster-agent-operator:<Operator_Version>
    $ docker tag registry.connect.redhat.com/appdynamics/cluster-agent-operator:21.12.0 scan.connect.redhat.com/johndoe/cluster-agent-operator:21.12.0
  2. Push the image:For example, to push the image version 21.12.0 to Redhat Registry for account name johndoe
    $ docker push <registryname>/<accountname>/cluster-agent-operator:<Operator_Version>
    $ docker push scan.connect.redhat.com/johndoe/cluster-agent-operator:21.12.0

Rhel Operator Image

Alternatively, you can use the pre-built Rhel-based Splunk AppDynamics Operator Image from theRedhat Container Registryaccount.

注: To use Redhat-based Splunk AppDynamics Operator, you may need to adjust your firewall settings as suggested by Redhat. Hence, you need to enable outbound connections to the following hostnames:cdn.quay.iocdn01.quay.iocdn02.quay.iocdn03.quay.io
  1. Log in to Red Hat Registry using your Customer Portal credentials:
    $ docker login registry.connect.redhat.com -u <your-username> -p <your-password>
  2. Pull the image:For example, to pull the Rhel-based Splunk AppDynamics Operator version 21.12.0:
    $ docker pull registry.connect.redhat.com/appdynamics/cluster-agent-operator:<Operator_Version>
    $ docker pull registry.connect.redhat.com/appdynamics/cluster-agent-operator:21.12.0

You can now use the Splunk AppDynamics Operator image.

To push this image to the internal registry, or to other accounts:

You can now use the Splunk AppDynamics Operator image.To push this image to the internal registry, or to other accounts:
  1. Rename the image:For example:
    $ docker tag registry.connect.redhat.com/appdynamics/cluster-agent-operator:<Operator_Version> <registryname>/<accountname>/cluster-agent-operator:<Operator_Version>
    $ docker tag registry.connect.redhat.com/appdynamics/cluster-agent-operator:21.12.0 scan.connect.redhat.com/johndoe/cluster-agent-operator:21.12.0
  2. Push the image:For example, to push the image version 21.12.0 to Redhat Registry for account name johndoe
    $ docker push <registryname>/<accountname>/cluster-agent-operator:<Operator_Version>
    $ docker push scan.connect.redhat.com/johndoe/cluster-agent-operator:21.12.0

Configure the Image in Splunk AppDynamics Operator YAML Specification

Make sure to reference the image in the cluster-agent-operator.yaml cluster-agent-operator- openshift.yaml spec:

apiVersion: cluster.appdynamics.com/v1alpha1
apiversion: apps/v1
kind: Deployment
metadata:
name: appdynamics-operator
namespace: appdynamics
spec:
replicas: 1
selector
matchLabels:
name: appdynamics-operator
template:
metadata:
labels:
name: appdynamics-operator
spec:
serviceAccountName: appdynamics-operator
containers:
- name: appdynamics-operator
image: <registryname>/<username>/cluster-agent-operator:<Operator_Version>
ports:
-containerPort: 60000
name: metrics
command:
-appdynamics-operator
imagePullPolicy: Always
resources:
limits:
cpu: 200m
memory: 128N1
requests:
cpu: 100m
memory: 64M1
env:
-name: WATCH NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata, namespace
-name: POD_NAME
valueFrom:
fieldRef:
fieldPath:-metadata.name
-name: OPERATOR_NAME
value: appoynamics-operator

For assistance, contact Support.