github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/examples/golang-pull/kubernetes/manifests.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    name: hotrod-golang
     5  spec:
     6    selector:
     7      matchLabels:
     8        app: hotrod-golang
     9    template:
    10      metadata:
    11        labels:
    12          app: hotrod-golang
    13          app.kubernetes.io/name: hotrod-golang
    14        annotations:
    15          pyroscope.io/scrape: 'true'
    16          pyroscope.io/application-name: 'hotrod'
    17          pyroscope.io/spy-name: 'gospy'
    18          pyroscope.io/profile-cpu-enabled: 'true'
    19          pyroscope.io/profile-mem-enabled: 'true'
    20          pyroscope.io/port: '6060'
    21      spec:
    22        serviceAccountName: default
    23        terminationGracePeriodSeconds: 5
    24        containers:
    25          - name: hotrod-golang
    26            image: public.ecr.aws/pyroscope/hotrod-golang:latest
    27            args: ['all']
    28            ports:
    29              - containerPort: 8080
    30              - containerPort: 6060
    31            env:
    32              - name: JAEGER_AGENT_HOST
    33                value: jaeger
    34              - name: JAEGER_AGENT_PORT
    35                value: '6831'
    36            resources:
    37              requests:
    38                cpu: 200m
    39                memory: 256Mi
    40              limits:
    41                cpu: 1
    42                memory: 256Mi
    43  ---
    44  apiVersion: apps/v1
    45  kind: Deployment
    46  metadata:
    47    name: jaeger
    48    labels:
    49      app: jaeger
    50      app.kubernetes.io/name: jaeger
    51  spec:
    52    replicas: 1
    53    strategy:
    54      type: Recreate
    55    selector:
    56      matchLabels:
    57        app: jaeger
    58    template:
    59      metadata:
    60        labels:
    61          app: jaeger
    62          app.kubernetes.io/name: jaeger
    63      spec:
    64        containers:
    65          - name: jaeger
    66            image: jaegertracing/all-in-one:1.1
    67            resources:
    68              requests:
    69                cpu: 200m
    70                memory: 256Mi
    71              limits:
    72                cpu: 1
    73                memory: 256Mi
    74            ports:
    75              - containerPort: 6831
    76                protocol: UDP
    77              - containerPort: 16686
    78                protocol: TCP
    79  ---
    80  apiVersion: v1
    81  kind: Service
    82  metadata:
    83    name: hotrod-golang
    84  spec:
    85    type: ClusterIP
    86    selector:
    87      app.kubernetes.io/name: hotrod-golang
    88    ports:
    89      - name: frontend
    90        port: 8080
    91        targetPort: 8080
    92  ---
    93  apiVersion: v1
    94  kind: Service
    95  metadata:
    96    name: jaeger
    97  spec:
    98    type: ClusterIP
    99    selector:
   100      app.kubernetes.io/name: jaeger
   101    ports:
   102      - name: agent
   103        port: 16686
   104        targetPort: 16686
   105      - name: agent-compact
   106        port: 6831
   107        protocol: UDP
   108        targetPort: 6831