Last active
April 24, 2022 09:22
-
-
Save tuxerrante/43fe3b0c93453901630bc23d2ea13b1c to your computer and use it in GitHub Desktop.
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
labels: | |
name: staging-webapp | |
name: staging-webapp | |
namespace: staging | |
spec: | |
containers: | |
- env: | |
- name: APP_COLOR | |
value: pink | |
image: kodekloud/webapp-color:stable | |
imagePullPolicy: Never | |
name: webapp-color | |
resources: {} | |
startupProbe: | |
exec: | |
command: | |
- rm | |
- /bin/ash | |
- /bin/sh | |
securityContext: | |
allowPrivilegeEscalation: false | |
runAsUser: 0 | |
capabilities: | |
add: | |
- NET_ADMIN | |
terminationMessagePath: /dev/termination-log | |
terminationMessagePolicy: File | |
volumeMounts: | |
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount | |
name: kube-api-access-v78f2 | |
readOnly: true | |
dnsPolicy: ClusterFirst | |
enableServiceLinks: true | |
nodeName: controlplane | |
preemptionPolicy: PreemptLowerPriority | |
priority: 0 | |
restartPolicy: Always | |
schedulerName: default-scheduler | |
securityContext: {} | |
serviceAccount: default | |
serviceAccountName: default | |
terminationGracePeriodSeconds: 30 | |
tolerations: | |
- effect: NoExecute | |
key: node.kubernetes.io/not-ready | |
operator: Exists | |
tolerationSeconds: 300 | |
- effect: NoExecute | |
key: node.kubernetes.io/unreachable | |
operator: Exists | |
tolerationSeconds: 300 | |
volumes: | |
- name: kube-api-access-v78f2 | |
projected: | |
defaultMode: 420 | |
sources: | |
- serviceAccountToken: | |
expirationSeconds: 3607 | |
path: token | |
- configMap: | |
items: | |
- key: ca.crt | |
path: ca.crt | |
name: kube-root-ca.crt | |
- downwardAPI: | |
items: | |
- fieldRef: | |
apiVersion: v1 | |
fieldPath: metadata.namespace | |
path: namespace | |
--- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment