Created
November 9, 2017 15:24
-
-
Save wstrange/b9c1adc2139dab8f9b554a9d21b30bdd to your computer and use it in GitHub Desktop.
Test pod preset in an init container
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: settings.k8s.io/v1alpha1 | |
kind: PodPreset | |
metadata: | |
name: test | |
spec: | |
selector: | |
matchLabels: | |
app: test | |
env: | |
- name: SETME | |
value: "This should be set in the init container" | |
--- | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: test | |
labels: | |
app: test | |
spec: | |
initContainers: | |
- name: init | |
image: busybox | |
args: ["env"] | |
containers: | |
- name: test | |
image: busybox | |
args: [ "sleep", "1000"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment