fix build
All checks were successful
build, sign and push / build-and-sign (push) Successful in 27s

This commit is contained in:
2026-03-26 19:38:05 +07:00
parent aadfe767d3
commit 430d4de3d6
6 changed files with 61 additions and 30 deletions

View File

@@ -0,0 +1,8 @@
{
"permissions": {
"allow": [
"mcp__context7__resolve-library-id",
"mcp__context7__query-docs"
]
}
}

View File

@@ -1,22 +1,31 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: { { include "nginx.fullname" . } } name: {{ include "nginx.fullname" . }}
labels: labels:
app: { { include "nginx.name" . } } app: {{ include "nginx.name" . }}
spec: spec:
replicas: { { .Values.replicaCount } } replicas: {{ .Values.replicaCount }}
selector: selector:
matchLabels: matchLabels:
app: { { include "nginx.name" . } } app: {{ include "nginx.name" . }}
template: template:
metadata: metadata:
labels: labels:
app: { { include "nginx.name" . } } app: {{ include "nginx.name" . }}
spec: spec:
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
containers: containers:
- name: nginx - name: nginx
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: { { .Values.image.pullPolicy } } imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
ports: ports:
- containerPort: 80 - containerPort: 8080

View File

@@ -1,11 +1,11 @@
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: { { include "nginx.fullname" . } } name: {{ include "nginx.fullname" . }}
spec: spec:
type: { { .Values.service.type } } type: {{ .Values.service.type }}
ports: ports:
- port: { { .Values.service.port } } - port: {{ .Values.service.port }}
targetPort: 80 targetPort: 8080
selector: selector:
app: { { include "nginx.name" . } } app: {{ include "nginx.name" . }}

View File

@@ -1,2 +1,5 @@
FROM nginx:1.25-alpine FROM nginx:1.25-alpine
COPY nginx.conf /etc/nginx/nginx.conf COPY nginx.conf /etc/nginx/nginx.conf
RUN chown -R nginx:nginx /var/cache/nginx /var/log/nginx /etc/nginx
USER nginx
EXPOSE 8080

View File

@@ -1,7 +1,17 @@
worker_processes auto;
pid /tmp/nginx.pid;
events {} events {}
http { http {
client_body_temp_path /tmp/client_body;
proxy_temp_path /tmp/proxy;
fastcgi_temp_path /tmp/fastcgi;
uwsgi_temp_path /tmp/uwsgi;
scgi_temp_path /tmp/scgi;
server { server {
listen 80; listen 8080;
location / { location / {
return 200 'Hello from custom nginx!'; return 200 'Hello from custom nginx!';
} }

View File

@@ -4,21 +4,22 @@ metadata:
name: require-image-signature name: require-image-signature
spec: spec:
validationFailureAction: Enforce validationFailureAction: Enforce
background: false
rules: rules:
- name: verify-image-signature - name: check-image-signature
match: match:
resources: any:
kinds: - resources:
- Pod kinds: [Pod]
include: namespaces: ["cosign-test"]
resources:
namespaces:
- cosign-test
verifyImages: verifyImages:
- image: "git.ntk.novotelecom.ru/adm/docker-trust*" - imageReferences:
key: "-----BEGIN PUBLIC KEY-----MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1kmEd1dzkY0MLMhNlkPz8LbX70tdw5acXoKYvOGzcTUK4jppKBCLst121UMC0L5DcgqNE9uly0S78aE8pbIxpBSgVdM8NPRa90vGTi50rauzOGiVRSxOzmkh3BVErqga84U9xb8QmS28rwjdSCbZSx27quzkDrvHwrfid5DroCSkNFQo7Bb84jlgTbrV5KwXkd7G5bMB3qaAzIpBQH+LbKn8/76rlU9/NfUpzftFdOwVVOWQIC7PYU8z2cKI9C+Su+MkrozuGSLrR/Z/urCK9xibrUzRMX7N2v5ORXGhili4pFJG7asxQjPzl2a23iYGkt8c5egxlXWFk4zrVnmawIDAQAB-----END PUBLIC KEY-----" - "git.realmanual.ru/pub/*"
attestors: attestors:
- entries: - entries:
- keyless: - keys:
subject: "*" publicKeys: |-
issuer: "*" -----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEZZ/9MbR3WZg9K/pk936vukFjeWVt
2oMpW4OmElpIq1aH3jZIA03Hwm7FVdhyumb1vPu5k0DOV8RX4UIs6rkhzA==
-----END PUBLIC KEY-----