Skip to content

Commit

Permalink
added broken-pod
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolagospagopa committed Feb 25, 2024
1 parent 920c62b commit 48530d2
Show file tree
Hide file tree
Showing 2 changed files with 126 additions and 0 deletions.
27 changes: 27 additions & 0 deletions argocd/broken-apps/broken-pod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: broken-network
# You'll usually want to add your resources to the argocd namespace.
namespace: argocd
# Add this finalizer ONLY if you want these to cascade delete.
finalizers:
# The default behaviour is foreground cascading deletion
- resources-finalizer.argocd.argoproj.io
# Alternatively, you can use background cascading deletion
# - resources-finalizer.argocd.argoproj.io/background
# Add labels to your application object.
labels:
name: broken-network
spec:
project: terraform-argocd-project
source:
targetRevision: argocd-apps
repoURL: 'https://github.com/diegolagospagopa/argocd-showcase'
path: resources/broken-pod
destination:
server: 'https://kubernetes.default.svc'
namespace: diego
syncPolicy:
automated: {}
revisionHistoryLimit: 10
99 changes: 99 additions & 0 deletions resources/broken-pod/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
reloader.stakater.com/auto: 'true'
labels:
app.kubernetes.io/instance: broken-pod
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: microservice-chart
app.kubernetes.io/version: v1.5.0
argocd.argoproj.io/instance: broken-pod
canaryDelivery: 'false'
helm.sh/blueprint-version: 5.4.1
helm.sh/chart: microservice-chart-v1.5.0
name: broken-pod-microservice-chart
namespace: diego
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app.kubernetes.io/instance: broken-pod
app.kubernetes.io/name: microservice-chart
canaryDelivery: 'false'
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
aadpodidbinding: diego-pod-identity
app.kubernetes.io/instance: broken-pod
app.kubernetes.io/name: microservice-chart
app.kubernetes.io/version: v1.5.0
canaryDelivery: 'false'
spec:
automountServiceAccountToken: false
containers:
- image: 'ghcr.io/pagopa/devops-app-status:v0.0.0'
imagePullPolicy: Always
livenessProbe:
failureThreshold: 6
httpGet:
path: /status
port: 8000
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
name: microservice-chart
ports:
- containerPort: 8000
name: app-port-8000
protocol: TCP
readinessProbe:
failureThreshold: 6
httpGet:
path: /status
port: 8000
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
cpu: 40m
memory: 128Mi
requests:
cpu: 40m
memory: 128Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- all
readOnlyRootFilesystem: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /tmp
name: tmp
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext:
seccompProfile:
type: RuntimeDefault
serviceAccount: default
serviceAccountName: default
terminationGracePeriodSeconds: 30
volumes:
- emptyDir: {}
name: tmp

0 comments on commit 48530d2

Please sign in to comment.