-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
4b7d711
dotnet pe tester - added health endpoint, k8s.
goncalvesj 15b87f8
fixes
goncalvesj 4124ec7
fixes.
goncalvesj 606d98f
fixes.
goncalvesj 98b2c10
added network policy to test.
goncalvesj d59f4a8
added otel.
goncalvesj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
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 | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
capabilities: | ||
drop: | ||
- NET_RAW | ||
runAsUser: 5678 | ||
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: | ||
requests: | ||
memory: "64Mi" | ||
cpu: "250m" | ||
ephemeral-storage: "1Gi" | ||
limits: | ||
memory: "128Mi" | ||
cpu: "500m" | ||
ports: | ||
- containerPort: 8080 | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: dotnet-pe-tester | ||
namespace: default | ||
spec: | ||
selector: | ||
app: dotnet-pe-tester | ||
type: ClusterIP | ||
ports: | ||
- port: 8080 | ||
targetPort: 8080 | ||
16 changes: 16 additions & 0 deletions
16
AppService-FrontDoor-PrivateEndpoints/k8s/network-policy.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
kind: NetworkPolicy | ||
apiVersion: networking.k8s.io/v1 | ||
metadata: | ||
namespace: default | ||
name: dotnet-pe-tester-policy | ||
spec: | ||
podSelector: | ||
matchLabels: | ||
app: dotnet-pe-tester | ||
policyTypes: | ||
- Ingress | ||
- Egress | ||
ingress: | ||
- {} | ||
egress: | ||
- {} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check notice
Code scanning / checkov
The default namespace should not be used Note