Skip to content

Commit b82047a

Browse files
MiltonMilton
authored andcommitted
feat: added new manifests
1 parent eb7d057 commit b82047a

File tree

12 files changed

+342
-0
lines changed

12 files changed

+342
-0
lines changed

manifests_examples/cronjobs.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
apiVersion: batch/v1
2+
kind: CronJob
3+
metadata:
4+
name: cronjob-gain
5+
spec:
6+
jobTemplate:
7+
metadata:
8+
name: job-gain
9+
spec:
10+
template:
11+
metadata:
12+
spec:
13+
containers:
14+
- image: busybox:1.28
15+
name: cronjob-gain
16+
command: ["sleep 3600"]
17+
resources: {}
18+
restartPolicy: Never
19+
schedule: '*/5 * * * *'
20+
status: {}

manifests_examples/ingress.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
apiVersion: networking.k8s.io/v1
2+
kind: Ingress
3+
metadata:
4+
name: ingress-colors
5+
namespace: colors
6+
annotations:
7+
nginx.ingress.kubernetes.io/rewrite-target: /
8+
spec:
9+
ingressClassName: nginx-example
10+
rules:
11+
- host: "yellow.com"
12+
http:
13+
paths:
14+
- path: /yellow
15+
pathType: Prefix
16+
backend:
17+
service:
18+
name: yellow-service
19+
port:
20+
number: 80

manifests_examples/job.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apiVersion: batch/v1
2+
kind: Job
3+
metadata:
4+
name: job-gain
5+
spec:
6+
parallelism: 2
7+
completions: 4
8+
backoffLimit: 3
9+
activeDeadlineSeconds: 40
10+
template:
11+
metadata:
12+
spec:
13+
containers:
14+
- image: busybox:1.28
15+
name: job-gain
16+
resources: {}
17+
restartPolicy: Never

manifests_examples/mark42.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
annotations:
5+
deployment.kubernetes.io/revision: "2"
6+
kubectl.kubernetes.io/last-applied-configuration: |
7+
{"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{},"name":"mark42","namespace":"default"},"spec":{"replicas":1,"selector":{"matchLabels":{"app":"mark42"}},"template":{"metadata":{"labels":{"app":"mark42"}},"spec":{"containers":[{"image":"redis:alpine","name":"mark42","ports":[{"containerPort":6379}],"resources":{}}]}}}}
8+
creationTimestamp: "2023-10-02T22:55:47Z"
9+
generation: 3
10+
name: mark42
11+
namespace: default
12+
resourceVersion: "7901"
13+
uid: cf061d31-d577-4caf-8ee2-0287c9d3bb60
14+
spec:
15+
progressDeadlineSeconds: 600
16+
replicas: 5
17+
revisionHistoryLimit: 10
18+
selector:
19+
matchLabels:
20+
app: mark42
21+
strategy:
22+
rollingUpdate:
23+
maxSurge: 25%
24+
maxUnavailable: 25%
25+
type: RollingUpdate
26+
template:
27+
metadata:
28+
creationTimestamp: null
29+
labels:
30+
app: mark42
31+
spec:
32+
containers:
33+
- image: redis:alpine
34+
imagePullPolicy: IfNotPresent
35+
name: mark42
36+
ports:
37+
- containerPort: 6379
38+
protocol: TCP
39+
resources: {}
40+
terminationMessagePath: /dev/termination-log
41+
terminationMessagePolicy: File
42+
securityContext:
43+
allowPrivilegeEscalation: false
44+
dnsPolicy: ClusterFirst
45+
restartPolicy: Always
46+
schedulerName: default-scheduler
47+
securityContext: {}
48+
serviceAccount: america-sa
49+
serviceAccountName: america-sa
50+
terminationGracePeriodSeconds: 30
51+
status:
52+
availableReplicas: 5
53+
conditions:
54+
- lastTransitionTime: "2023-10-02T22:55:47Z"
55+
lastUpdateTime: "2023-10-03T00:12:45Z"
56+
message: ReplicaSet "mark42-857f59fdd5" has successfully progressed.
57+
reason: NewReplicaSetAvailable
58+
status: "True"
59+
type: Progressing
60+
- lastTransitionTime: "2023-10-03T00:13:31Z"
61+
lastUpdateTime: "2023-10-03T00:13:31Z"
62+
message: Deployment has minimum availability.
63+
reason: MinimumReplicasAvailable
64+
status: "True"
65+
type: Available
66+
observedGeneration: 3
67+
readyReplicas: 5
68+
replicas: 5
69+
updatedReplicas: 5

manifests_examples/mark50.yaml

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
annotations:
5+
kubectl.kubernetes.io/last-applied-configuration: |
6+
{"apiVersion":"v1","kind":"Pod","metadata":{"annotations":{},"labels":{"name":"mark50"},"name":"mark50","namespace":"default"},"spec":{"containers":[{"image":"nginx:alpine","name":"stark-industries-deployment","ports":[{"containerPort":80}],"resources":{}}]}}
7+
creationTimestamp: "2023-10-02T22:55:48Z"
8+
labels:
9+
name: mark50
10+
name: mark50
11+
namespace: shield
12+
resourceVersion: "793"
13+
uid: fb14544a-795f-4866-a977-d0092637c6ba
14+
spec:
15+
containers:
16+
- image: nginx:alpine
17+
imagePullPolicy: IfNotPresent
18+
name: stark-industries-deployment
19+
ports:
20+
- containerPort: 80
21+
protocol: TCP
22+
livenessProbe:
23+
httpGet:
24+
path: /
25+
port: 80
26+
initialDelaySeconds: 5
27+
periodSeconds: 10
28+
resources: {}
29+
terminationMessagePath: /dev/termination-log
30+
terminationMessagePolicy: File
31+
volumeMounts:
32+
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
33+
name: kube-api-access-jkdv5
34+
readOnly: true
35+
dnsPolicy: ClusterFirst
36+
enableServiceLinks: true
37+
nodeName: kubelearn-cluster-worker2
38+
preemptionPolicy: PreemptLowerPriority
39+
priority: 0
40+
restartPolicy: Always
41+
schedulerName: default-scheduler
42+
securityContext: {}
43+
serviceAccount: default
44+
serviceAccountName: default
45+
terminationGracePeriodSeconds: 30
46+
tolerations:
47+
- effect: NoExecute
48+
key: node.kubernetes.io/not-ready
49+
operator: Exists
50+
tolerationSeconds: 300
51+
- effect: NoExecute
52+
key: node.kubernetes.io/unreachable
53+
operator: Exists
54+
tolerationSeconds: 300
55+
volumes:
56+
- name: kube-api-access-jkdv5
57+
projected:
58+
defaultMode: 420
59+
sources:
60+
- serviceAccountToken:
61+
expirationSeconds: 3607
62+
path: token
63+
- configMap:
64+
items:
65+
- key: ca.crt
66+
path: ca.crt
67+
name: kube-root-ca.crt
68+
- downwardAPI:
69+
items:
70+
- fieldRef:
71+
apiVersion: v1
72+
fieldPath: metadata.namespace
73+
path: namespace
74+
status:
75+
conditions:
76+
- lastProbeTime: null
77+
lastTransitionTime: "2023-10-02T22:55:48Z"
78+
status: "True"
79+
type: Initialized
80+
- lastProbeTime: null
81+
lastTransitionTime: "2023-10-02T22:56:08Z"
82+
status: "True"
83+
type: Ready
84+
- lastProbeTime: null
85+
lastTransitionTime: "2023-10-02T22:56:08Z"
86+
status: "True"
87+
type: ContainersReady
88+
- lastProbeTime: null
89+
lastTransitionTime: "2023-10-02T22:55:48Z"
90+
status: "True"
91+
type: PodScheduled
92+
containerStatuses:
93+
- containerID: containerd://a726bd53996831095ead3a9774186d4d3aad97d6246e29567300d9b600e970de
94+
image: docker.io/library/nginx:alpine
95+
imageID: docker.io/library/nginx@sha256:4c93a3bd8bf95412889dd84213570102176b6052d88bb828eaf449c56aca55ef
96+
lastState: {}
97+
name: stark-industries-deployment
98+
ready: true
99+
restartCount: 0
100+
started: true
101+
state:
102+
running:
103+
startedAt: "2023-10-02T22:56:07Z"
104+
hostIP: 172.18.0.4
105+
phase: Running
106+
podIP: 10.244.2.6
107+
podIPs:
108+
- ip: 10.244.2.6
109+
qosClass: BestEffort
110+
startTime: "2023-10-02T22:55:48Z"

manifests_examples/netpol.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: networking.k8s.io/v1
2+
kind: NetworkPolicy
3+
metadata:
4+
name: allow-policy-colors
5+
spec:
6+
podSelector:
7+
matchLabels:
8+
tier: backend
9+
policyTypes:
10+
- Ingress
11+
ingress:
12+
- from:
13+
- podSelector:
14+
matchLabels:
15+
tier: frontend
16+
ports:
17+
- protocol: TCP
18+
port: 6379

manifests_examples/podpvc.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: webserver
5+
namespace: public
6+
spec:
7+
volumes:
8+
- name: unicorn-pv
9+
persistentVolumeClaim:
10+
claimName: unicorn-pvc
11+
containers:
12+
- name: task-pv-container
13+
image: nginx:alpine
14+
ports:
15+
- containerPort: 80
16+
name: "webserver"
17+
volumeMounts:
18+
- mountPath: "/usr/share/nginx/html"
19+
name: unicorn-pv

manifests_examples/purple-pod.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
creationTimestamp: null
5+
labels:
6+
run: purple
7+
name: purple
8+
namespace: colors
9+
spec:
10+
volumes:
11+
- name: secret-volume
12+
secret:
13+
secretName: secret-purple
14+
containers:
15+
- image: redis:alpine
16+
name: purple
17+
volumeMounts:
18+
- mountPath: /tmp/data
19+
name: secret-volume

manifests_examples/pv.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: v1
2+
kind: PersistentVolume
3+
metadata:
4+
name: unicorn-pv
5+
labels:
6+
type: local
7+
spec:
8+
storageClassName: manual
9+
capacity:
10+
storage: 1Gi
11+
accessModes:
12+
- ReadWriteMany
13+
hostPath:
14+
path: "/tmp/data"

manifests_examples/pvc.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: v1
2+
kind: PersistentVolumeClaim
3+
metadata:
4+
name: unicorn-pvc
5+
spec:
6+
storageClassName: manual
7+
accessModes:
8+
- ReadWriteMany
9+
resources:
10+
requests:
11+
storage: 400Mi

0 commit comments

Comments
 (0)