Skip to content

Commit

Permalink
Upgarding the one-to-rule-them-all YAML
Browse files Browse the repository at this point in the history
Signed-off-by: Kitarp29 <[email protected]>
  • Loading branch information
kitarp29 committed Aug 18, 2023
1 parent 4957ed4 commit ade4943
Showing 1 changed file with 29 additions and 18 deletions.
47 changes: 29 additions & 18 deletions yamls/one-to-rule-them-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,35 @@ roleRef: # referring to your ClusterRole
name: cluster-admin # or the custom role you created in the last step
apiGroup: rbac.authorization.k8s.io
---
apiVersion: v1
kind: Pod
apiVersion: apps/v1
kind: Deployment
metadata:
name: kube-ez
spec:
serviceAccount: kube-ez
containers:
- name: kube-ez
image: kitarp29/k8s-api:latest
ports:
- containerPort: 8000
securityContext:
allowPrivilegeEscalation: false
livenessProbe:
initialDelaySeconds: 60
periodSeconds: 300
successThreshold: 1
failureThreshold: 3
httpGet:
path: /
port: 8000
replicas: 1
selector:
matchLabels:
app: kube-ez
template:
metadata:
labels:
app: kube-ez
spec:
serviceAccount: kube-ez
containers:
- name: kube-ez
image: kitarp29/k8s-api:10
imagePullPolicy: Always
ports:
- containerPort: 8000
securityContext:
allowPrivilegeEscalation: false
livenessProbe:
initialDelaySeconds: 60
periodSeconds: 300
successThreshold: 1
failureThreshold: 3
httpGet:
path: /
port: 8000
restartPolicy: Always

0 comments on commit ade4943

Please sign in to comment.