-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
features - dotnet pe tester updates #178
Conversation
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: dotnet-pe-tester | ||
namespace: default | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: dotnet-pe-tester | ||
template: | ||
metadata: | ||
labels: | ||
app: dotnet-pe-tester | ||
annotations: | ||
prometheus.io/scrape: 'true' | ||
prometheus.io/path: '/metrics' | ||
prometheus.io/port: '8080' | ||
spec: | ||
automountServiceAccountToken: false | ||
containers: | ||
- name: dotnet-pe-tester | ||
image: ghcr.io/goncalvesj/dotnet-pe-tester:latest | ||
imagePullPolicy: Always | ||
readinessProbe: | ||
httpGet: | ||
path: /health | ||
port: 8080 | ||
initialDelaySeconds: 5 | ||
periodSeconds: 5 | ||
env: | ||
- name: APP_CONFIG_ENDPOINT | ||
value: "" | ||
- name: APP_CONFIG_ENDPOINT_KEY | ||
value: "" | ||
- name: POSTGRES_CONNECTIONSTRING | ||
value: "" | ||
- name: SQL_CONNECTIONSTRING | ||
value: "" | ||
- name: CACHE_CONNECTIONSTRING | ||
value: "" | ||
- name: STORAGE_CONNECTIONSTRING | ||
value: "" | ||
resources: | ||
limits: | ||
memory: "128Mi" | ||
cpu: "500m" | ||
ports: | ||
- containerPort: 8080 | ||
--- |
Check notice
Code scanning / checkov
The default namespace should not be used Note
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: dotnet-pe-tester | ||
namespace: default | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: dotnet-pe-tester | ||
template: | ||
metadata: | ||
labels: | ||
app: dotnet-pe-tester | ||
annotations: | ||
prometheus.io/scrape: 'true' | ||
prometheus.io/path: '/metrics' | ||
prometheus.io/port: '8080' | ||
spec: | ||
automountServiceAccountToken: false | ||
containers: | ||
- name: dotnet-pe-tester | ||
image: ghcr.io/goncalvesj/dotnet-pe-tester:latest | ||
imagePullPolicy: Always | ||
readinessProbe: | ||
httpGet: | ||
path: /health | ||
port: 8080 | ||
initialDelaySeconds: 5 | ||
periodSeconds: 5 | ||
env: | ||
- name: APP_CONFIG_ENDPOINT | ||
value: "" | ||
- name: APP_CONFIG_ENDPOINT_KEY | ||
value: "" | ||
- name: POSTGRES_CONNECTIONSTRING | ||
value: "" | ||
- name: SQL_CONNECTIONSTRING | ||
value: "" | ||
- name: CACHE_CONNECTIONSTRING | ||
value: "" | ||
- name: STORAGE_CONNECTIONSTRING | ||
value: "" | ||
resources: | ||
limits: | ||
memory: "128Mi" | ||
cpu: "500m" | ||
ports: | ||
- containerPort: 8080 | ||
--- |
Check notice
Code scanning / checkov
Image should use digest Note
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: dotnet-pe-tester | ||
namespace: default | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: dotnet-pe-tester | ||
template: | ||
metadata: | ||
labels: | ||
app: dotnet-pe-tester | ||
annotations: | ||
prometheus.io/scrape: 'true' | ||
prometheus.io/path: '/metrics' | ||
prometheus.io/port: '8080' | ||
spec: | ||
automountServiceAccountToken: false | ||
containers: | ||
- name: dotnet-pe-tester | ||
image: ghcr.io/goncalvesj/dotnet-pe-tester:latest | ||
imagePullPolicy: Always | ||
readinessProbe: | ||
httpGet: | ||
path: /health | ||
port: 8080 | ||
initialDelaySeconds: 5 | ||
periodSeconds: 5 | ||
env: | ||
- name: APP_CONFIG_ENDPOINT | ||
value: "" | ||
- name: APP_CONFIG_ENDPOINT_KEY | ||
value: "" | ||
- name: POSTGRES_CONNECTIONSTRING | ||
value: "" | ||
- name: SQL_CONNECTIONSTRING | ||
value: "" | ||
- name: CACHE_CONNECTIONSTRING | ||
value: "" | ||
- name: STORAGE_CONNECTIONSTRING | ||
value: "" | ||
resources: | ||
limits: | ||
memory: "128Mi" | ||
cpu: "500m" | ||
ports: | ||
- containerPort: 8080 | ||
--- |
Check notice
Code scanning / checkov
Containers should run as a high UID to avoid host conflict Note
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: dotnet-pe-tester | ||
namespace: default | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: dotnet-pe-tester | ||
template: | ||
metadata: | ||
labels: | ||
app: dotnet-pe-tester | ||
annotations: | ||
prometheus.io/scrape: 'true' | ||
prometheus.io/path: '/metrics' | ||
prometheus.io/port: '8080' | ||
spec: | ||
automountServiceAccountToken: false | ||
containers: | ||
- name: dotnet-pe-tester | ||
image: ghcr.io/goncalvesj/dotnet-pe-tester:latest | ||
imagePullPolicy: Always | ||
readinessProbe: | ||
httpGet: | ||
path: /health | ||
port: 8080 | ||
initialDelaySeconds: 5 | ||
periodSeconds: 5 | ||
env: | ||
- name: APP_CONFIG_ENDPOINT | ||
value: "" | ||
- name: APP_CONFIG_ENDPOINT_KEY | ||
value: "" | ||
- name: POSTGRES_CONNECTIONSTRING | ||
value: "" | ||
- name: SQL_CONNECTIONSTRING | ||
value: "" | ||
- name: CACHE_CONNECTIONSTRING | ||
value: "" | ||
- name: STORAGE_CONNECTIONSTRING | ||
value: "" | ||
resources: | ||
limits: | ||
memory: "128Mi" | ||
cpu: "500m" | ||
ports: | ||
- containerPort: 8080 | ||
--- |
Check notice
Code scanning / checkov
Ensure that the seccomp profile is set to docker/default or runtime/default Note
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: dotnet-pe-tester | ||
namespace: default | ||
spec: | ||
selector: | ||
app: dotnet-pe-tester | ||
type: ClusterIP | ||
ports: | ||
- port: 8080 | ||
targetPort: 8080 |
Check notice
Code scanning / checkov
The default namespace should not be used Note
Quality Gate passedIssues Measures |
No description provided.