Skip to content

Instantly share code, notes, and snippets.

@GaetanoPiazzolla
Created September 19, 2021 10:23
Show Gist options
  • Save GaetanoPiazzolla/7fdc408808ac208229e4274f4e6889b9 to your computer and use it in GitHub Desktop.
Save GaetanoPiazzolla/7fdc408808ac208229e4274f4e6889b9 to your computer and use it in GitHub Desktop.
Test with kube-linter
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: test-ms
release: 2.0.2
name: test-ms
namespace: test
spec:
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: test-ms
release: 2.0.2
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
app: test-ms
release: 2.0.2
spec:
imagePullSecrets:
- name: regcred
containers:
- image: test-ms:1.0.0
envFrom:
- configMapRef:
name: test-ms-map
- secretRef:
name: test-envvar-secret
env:
- name: SMTP_PASSWORD
valueFrom:
secretKeyRef:
name: test-ms-smtp-secret
key: password
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 6
httpGet:
path: /test
port: 8080
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
name: test-ms
ports:
- containerPort: 8080
name: http
protocol: TCP
- containerPort: 443
name: https
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /test
port: 8080
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 3
volumeMounts:
- mountPath: /app/test-key/key.der
name: test-key
subPath: key.der
resources: {}
terminationMessagePath: /dev/log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
hostAliases:
- hostnames:
- status.localhost
ip: 127.0.0.1
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment