...

Text file src/edge-infra.dev/config/pallets/f8n/dev-infra/oci-registry-explorer/deployment.yaml

Documentation: edge-infra.dev/config/pallets/f8n/dev-infra/oci-registry-explorer

     1apiVersion: v1
     2kind: Namespace
     3metadata:
     4  name: oci-registry-explorer
     5  annotations:
     6    cnrm.cloud.google.com/project-id: ${gcp_project_id}
     7---
     8apiVersion: v1
     9kind: ServiceAccount
    10metadata:
    11  name: oci-registry-explorer
    12  labels:
    13    app.kubernetes.io/name: oci-registry-explorer
    14  annotations:
    15    iam.gke.io/gcp-service-account: oci-registry-explorer@${gcp_project_id}.iam.gserviceaccount.com
    16---
    17apiVersion: apps/v1
    18kind: Deployment
    19metadata:
    20  name: oci-registry-explorer
    21spec:
    22  replicas: 1
    23  selector:
    24    matchLabels:
    25      app.kubernetes.io/name: oci-registry-explorer
    26  template:
    27    metadata:
    28      labels:
    29        app.kubernetes.io/name: oci-registry-explorer
    30    spec:
    31      serviceAccount: oci-registry-explorer
    32      containers:
    33      - name: oci-registry-explorer
    34        image: us-east1-docker.pkg.dev/ret-edge-pltf-infra/workloads/oci-registry-explorer:latest
    35        ports:
    36        - name: http
    37          containerPort: 8080
    38        env:
    39        - name: AUTH
    40          value: 'keychain'
    41        readinessProbe:
    42          httpGet:
    43            port: http
    44            path: /
    45        imagePullPolicy: Always
    46---
    47apiVersion: v1
    48kind: Service
    49metadata:
    50  name: oci-registry-explorer
    51spec:
    52  type: NodePort
    53  selector:
    54    app.kubernetes.io/name: oci-registry-explorer
    55  ports:
    56  - name: http
    57    port: 8080
    58    targetPort: 8080

View as plain text