Last active
September 25, 2024 08:17
-
-
Save yashwanth-l/ef615c20520918bfb57d816592cc4883 to your computer and use it in GitHub Desktop.
step-cli-jwt-inspect.yaml
This file contains hidden or 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: | |
| name: step-cli-jwt-inspect | |
| namespace: ${NAMESPACE} | |
| spec: | |
| serviceAccountName: ${SERVICE_ACCOUNT_NAME} | |
| volumes: | |
| - name: jwt-token | |
| projected: | |
| sources: | |
| - serviceAccountToken: | |
| path: jwt-token | |
| expirationSeconds: 3600 | |
| # audience: test | |
| containers: | |
| - image: smallstep/step-cli | |
| name: step-cli | |
| command: | |
| - /bin/sh | |
| - -c | |
| - cat /var/run/secrets/tokens/jwt-token | step crypto jwt inspect --insecure | |
| resources: | |
| requests: | |
| cpu: 250m | |
| memory: 512Mi | |
| ephemeral-storage: 1Gi | |
| securityContext: | |
| capabilities: | |
| drop: | |
| - ALL | |
| allowPrivilegeEscalation: false | |
| volumeMounts: | |
| - mountPath: /var/run/secrets/tokens | |
| name: jwt-token | |
| readOnly: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment