Skip to content

Commit

Permalink
Add RestartApp functionality
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Krampl <[email protected]>
  • Loading branch information
frodesundby and thokra-nav committed Mar 15, 2024
1 parent 471fdf5 commit c69b4a7
Show file tree
Hide file tree
Showing 7 changed files with 431 additions and 24 deletions.
123 changes: 123 additions & 0 deletions data/k8s/dev/devteam/no-logs-for-you.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -534,3 +534,126 @@ status:
- ip: 10.7.103.103
qosClass: Burstable
startTime: "2024-02-29T13:06:04Z"
---
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "8"
kubernetes.io/change-cause: 'nais deploy: commit ae4e62746aba1acd900edc74664303b19a4b3257:
https://github.com/navikt/nais-debugapp/actions/runs/8008002103'
nais.io/deploymentCorrelationID: 55c96e0c-7e29-4ebe-ae12-6d6456ca282c
reloader.stakater.com/search: "true"
labels:
app: no-logs-for-you
name: no-logs-for-you
spec:
progressDeadlineSeconds: 300
replicas: 1
revisionHistoryLimit: 3
selector:
matchLabels:
app: no-logs-for-you
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
kubectl.kubernetes.io/default-container: no-logs-for-you
creationTimestamp: null
labels:
app: no-logs-for-you
team: aura
name: no-logs-for-you
namespace: aura
ownerReferences:
- apiVersion: nais.io/v1alpha1
kind: Application
name: no-logs-for-you
uid: dfb99342-a82f-4ae1-af01-81f26b352413
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- no-logs-for-you
topologyKey: kubernetes.io/hostname
weight: 10
containers:
- env:
- name: LOG4J_FORMAT_MSG_NO_LOOKUPS
value: "true"
image: europe-north1-docker.pkg.dev/nais-management/nais-debugapp:image
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
exec:
command:
- sleep
- "5"
livenessProbe:
failureThreshold: 3
httpGet:
path: /_healthz
port: 8080
scheme: HTTP
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
name: no-logs-for-you
ports:
- containerPort: 5000
name: http
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /_healthz
port: 8080
scheme: HTTP
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 512Mi
requests:
cpu: 50m
memory: 32Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
readOnlyRootFilesystem: true
runAsGroup: 1069
runAsNonRoot: true
runAsUser: 1069
seccompProfile:
type: RuntimeDefault
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /tmp
name: writable-tmp
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext:
fsGroup: 1069
fsGroupChangePolicy: OnRootMismatch
seccompProfile:
type: RuntimeDefault
serviceAccount: no-logs-for-you
serviceAccountName: no-logs-for-you
terminationGracePeriodSeconds: 30
16 changes: 16 additions & 0 deletions internal/graph/app.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c69b4a7

Please sign in to comment.