Created
April 24, 2022 08:58
-
-
Save tuxerrante/af7fed3f2cd0017bf4347b00022684be 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 | |
imagePullPolicy: Never | |
name: webapp-color | |
resources: {} | |
securityContext: | |
allowPrivilegeEscalation: true | |
runAsUser: 0 | |
capabilities: | |
add: | |
- NET_ADMIN | |
- SYS_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