apiVersion: apps/v1 kind: Deployment metadata: name: flex-auth-user-engine namespace: flex-auth spec: replicas: 1 selector: matchLabels: app.kubernetes.io/name: flex-auth-user-engine template: metadata: labels: app.kubernetes.io/name: flex-auth-user-engine spec: automountServiceAccountToken: false containers: - args: - serve - --addr - 0.0.0.0:8080 - --registry - /opt/flex-auth/examples/user-engine/registry_snapshot.json - --policy - /opt/flex-auth/examples/user-engine/policy_package.md image: forgejo.coulomb.social/coulomb/flex-auth@sha256:1f5290376dc5fcf456dc7a785e394d8b90949dabecd1d3e856f38557149bb5f4 livenessProbe: httpGet: path: /healthz port: http periodSeconds: 20 name: flex-auth ports: - containerPort: 8080 name: http readinessProbe: httpGet: path: /healthz port: http periodSeconds: 5 resources: limits: cpu: 300m memory: 192Mi requests: cpu: 25m memory: 32Mi securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL readOnlyRootFilesystem: true securityContext: runAsNonRoot: true seccompProfile: type: RuntimeDefault --- apiVersion: v1 kind: Service metadata: name: flex-auth-user-engine namespace: flex-auth spec: ports: - name: http port: 8080 targetPort: http selector: app.kubernetes.io/name: flex-auth-user-engine --- apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: flex-auth-user-engine namespace: flex-auth spec: egress: [] ingress: - from: - namespaceSelector: matchLabels: kubernetes.io/metadata.name: user-engine podSelector: matchLabels: app.kubernetes.io/name: user-engine ports: - port: 8080 protocol: TCP podSelector: matchLabels: app.kubernetes.io/name: flex-auth-user-engine policyTypes: - Ingress - Egress