pre-sync/oci-image-verification/signature-verification-deployment.yaml (46 lines of code) (raw):
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# [START anthosconfig_signature_verification_deployment]
apiVersion: apps/v1
kind: Deployment
metadata:
name: signature-verification-server
spec:
replicas: 1
selector:
matchLabels:
app: signature-verification-server
template:
metadata:
labels:
app: signature-verification-server
spec:
serviceAccountName: signature-verification-sa
containers:
- name: signature-verification-server
command:
- /signature-verification-server
image: SIGNATURE_VERIFICATION_SERVER_IMAGE_URL
imagePullPolicy: Always
ports:
- containerPort: 10250
volumeMounts:
- name: tls-certs
mountPath: "/tls"
- name: cosign-key
mountPath: "/cosign-key"
volumes:
- name: cosign-key
secret:
secretName: cosign-key
- name: tls-certs
secret:
secretName: webhook-tls
---
apiVersion: v1
kind: Service
metadata:
name: signature-verification-service
spec:
ports:
- port: 10250
targetPort: 10250
selector:
app: signature-verification-server
# [END anthosconfig_signature_verification_deployment]