mirror of
https://github.com/ossf/scorecard.git
synced 2024-11-10 12:27:01 +03:00
89cae3a62a
Co-authored-by: Azeem Shaikh <azeems@google.com>
58 lines
1.5 KiB
YAML
58 lines
1.5 KiB
YAML
# Copyright 2021 Security Scorecard Authors
|
|
#
|
|
# 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.
|
|
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: scorecard-github-server
|
|
spec:
|
|
clusterIP: 10.4.4.210
|
|
selector:
|
|
app.kubernetes.io/name: github-auth-server
|
|
ports:
|
|
- protocol: TCP
|
|
port: 80
|
|
targetPort: 8080
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: scorecard-github-server
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: github-auth-server
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: github-auth-server
|
|
spec:
|
|
containers:
|
|
- name: github-auth-server
|
|
image: gcr.io/openssf/scorecard-github-server:stable
|
|
imagePullPolicy: Always
|
|
env:
|
|
- name: GITHUB_AUTH_TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: github
|
|
key: token
|
|
strategy:
|
|
type: "RollingUpdate"
|
|
rollingUpdate:
|
|
maxUnavailable: 1
|
|
maxSurge: 0
|