Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmiell committed Feb 14, 2021
1 parent bd8de2d commit f5e758e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Deployment/webserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
- -m
- http.server
ports:
- containerPort: 8000
- containerPort: 8000
---
# https://kubernetes.io/docs/concepts/services-networking/service/
apiVersion: v1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
Expand Down
1 change: 1 addition & 0 deletions PodPreset/pod-preset.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: settings.k8s.io/v1alpha1
kind: PodPreset
metadata:
Expand Down
6 changes: 3 additions & 3 deletions ServiceAccount/service-account-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ metadata:
name: service-account-rolebinding
namespace: default
subjects:
- kind: ServiceAccount
name: service-account-pod-read
- kind: ServiceAccount
name: service-account-pod-read
roleRef:
kind: Role
name: role-pod-read
Expand All @@ -35,7 +35,7 @@ metadata:
namespace: default
spec:
containers:
- command: ["/bin/bash","-c","apt update -y -qq && apt install -qq -y curl && curl -s https://kubernetes:443/api/v1/namespaces/default/pods --header \"Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)\" --insecure && sleep 3600"]
- command: ["/bin/bash", "-c", "apt update -y -qq && apt install -qq -y curl && curl -s https://kubernetes:443/api/v1/namespaces/default/pods --header \"Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)\" --insecure && sleep 3600"]
image: ubuntu
name: pods-simple-container
serviceAccount: service-account-pod-read

0 comments on commit f5e758e

Please sign in to comment.