-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
253 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
kube-objects/ConfigMap_reverse-words-app_reversewords-release.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: v1 | ||
data: | ||
release: Base Release | ||
kind: ConfigMap | ||
metadata: | ||
annotations: | ||
kubectl.kubernetes.io/last-applied-configuration: | | ||
{"apiVersion":"v1","data":{"release":"Base Release"},"kind":"ConfigMap","metadata":{"annotations":{},"labels":{"app":"reversewords-app"},"name":"reversewords-release","namespace":"reverse-words-app"}} | ||
labels: | ||
app: reversewords-app | ||
name: reversewords-release |
79 changes: 79 additions & 0 deletions
79
kube-objects/Deployment_reverse-words-app_reverse-words.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
annotations: | ||
deployment.kubernetes.io/revision: "3" | ||
kubectl.kubernetes.io/last-applied-configuration: | | ||
{"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{},"labels":{"app":"reversewords-app"},"name":"reverse-words","namespace":"reverse-words-app"},"spec":{"replicas":1,"selector":{"matchLabels":{"app":"reversewords-app"}},"template":{"metadata":{"labels":{"app":"reversewords-app"}},"spec":{"containers":[{"env":[{"name":"RELEASE","valueFrom":{"configMapKeyRef":{"key":"release","name":"reversewords-release"}}}],"image":"quay.io/mavazque/reversewords:latest","livenessProbe":{"httpGet":{"path":"/health","port":8080},"initialDelaySeconds":5,"periodSeconds":15,"timeoutSeconds":2},"name":"reverse-words","ports":[{"containerPort":8080,"name":"http"}],"readinessProbe":{"httpGet":{"path":"/health","port":8080},"initialDelaySeconds":10,"periodSeconds":15,"timeoutSeconds":2},"volumeMounts":[{"mountPath":"/reversewords-storage/","name":"reversewords-storage"}]}],"serviceAccountName":"reversewordsapp","volumes":[{"name":"reversewords-storage","persistentVolumeClaim":{"claimName":"reversewords-storage"}}]}}}} | ||
labels: | ||
app: reversewords-app | ||
name: reverse-words | ||
spec: | ||
progressDeadlineSeconds: 600 | ||
replicas: 1 | ||
revisionHistoryLimit: 10 | ||
selector: | ||
matchLabels: | ||
app: reversewords-app | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: 25% | ||
maxUnavailable: 25% | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app: reversewords-app | ||
spec: | ||
containers: | ||
- env: | ||
- name: RELEASE | ||
valueFrom: | ||
configMapKeyRef: | ||
key: release | ||
name: reversewords-release | ||
image: quay.io/mavazque/reversewords:0.28 | ||
imagePullPolicy: Always | ||
livenessProbe: | ||
failureThreshold: 3 | ||
httpGet: | ||
path: /health | ||
port: 8080 | ||
scheme: HTTP | ||
initialDelaySeconds: 5 | ||
periodSeconds: 15 | ||
successThreshold: 1 | ||
timeoutSeconds: 2 | ||
name: reverse-words | ||
ports: | ||
- containerPort: 8080 | ||
name: http | ||
protocol: TCP | ||
readinessProbe: | ||
failureThreshold: 3 | ||
httpGet: | ||
path: /health | ||
port: 8080 | ||
scheme: HTTP | ||
initialDelaySeconds: 10 | ||
periodSeconds: 15 | ||
successThreshold: 1 | ||
timeoutSeconds: 2 | ||
resources: {} | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
volumeMounts: | ||
- mountPath: /reversewords-storage/ | ||
name: reversewords-storage | ||
dnsPolicy: ClusterFirst | ||
restartPolicy: Always | ||
schedulerName: default-scheduler | ||
securityContext: {} | ||
serviceAccount: reversewordsapp | ||
serviceAccountName: reversewordsapp | ||
terminationGracePeriodSeconds: 30 | ||
volumes: | ||
- name: reversewords-storage | ||
persistentVolumeClaim: | ||
claimName: reversewords-storage |
21 changes: 21 additions & 0 deletions
21
kube-objects/PersistentVolumeClaim_reverse-words-app_reversewords-storage.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
annotations: | ||
kubectl.kubernetes.io/last-applied-configuration: | | ||
{"apiVersion":"v1","kind":"PersistentVolumeClaim","metadata":{"annotations":{},"labels":{"app":"reversewords-app"},"name":"reversewords-storage","namespace":"reverse-words-app"},"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"1Gi"}},"volumeMode":"Filesystem"}} | ||
volume.beta.kubernetes.io/storage-provisioner: topolvm.cybozu.com | ||
volume.kubernetes.io/storage-provisioner: topolvm.cybozu.com | ||
finalizers: | ||
- kubernetes.io/pvc-protection | ||
labels: | ||
app: reversewords-app | ||
name: reversewords-storage | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
storageClassName: odf-lvm-vg1 | ||
volumeMode: Filesystem |
19 changes: 19 additions & 0 deletions
19
kube-objects/RoleBinding_reverse-words-app_reversewordsapp-read-pods.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: authorization.openshift.io/v1 | ||
groupNames: null | ||
kind: RoleBinding | ||
metadata: | ||
annotations: | ||
kubectl.kubernetes.io/last-applied-configuration: | | ||
{"apiVersion":"rbac.authorization.k8s.io/v1","kind":"RoleBinding","metadata":{"annotations":{},"labels":{"app":"reversewords-app"},"name":"reversewordsapp-read-pods","namespace":"reverse-words-app"},"roleRef":{"apiGroup":"rbac.authorization.k8s.io","kind":"Role","name":"pod-reader"},"subjects":[{"kind":"ServiceAccount","name":"reversewordsapp","namespace":"reverse-words-app"}]} | ||
labels: | ||
app: reversewords-app | ||
name: reversewordsapp-read-pods | ||
roleRef: | ||
name: pod-reader | ||
namespace: reverse-words-app | ||
subjects: | ||
- kind: ServiceAccount | ||
name: reversewordsapp | ||
namespace: reverse-words-app | ||
userNames: | ||
- system:serviceaccount:reverse-words-app:reversewordsapp |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: authorization.openshift.io/v1 | ||
kind: Role | ||
metadata: | ||
annotations: | ||
kubectl.kubernetes.io/last-applied-configuration: | | ||
{"apiVersion":"rbac.authorization.k8s.io/v1","kind":"Role","metadata":{"annotations":{},"labels":{"app":"reversewords-app"},"name":"pod-reader","namespace":"reverse-words-app"},"rules":[{"apiGroups":[""],"resources":["pods"],"verbs":["get","watch","list"]}]} | ||
labels: | ||
app: reversewords-app | ||
name: pod-reader | ||
rules: | ||
- apiGroups: | ||
- "" | ||
attributeRestrictions: null | ||
resources: | ||
- pods | ||
verbs: | ||
- get | ||
- list | ||
- watch |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: route.openshift.io/v1 | ||
kind: Route | ||
metadata: | ||
annotations: | ||
kubectl.kubernetes.io/last-applied-configuration: | | ||
{"apiVersion":"route.openshift.io/v1","kind":"Route","metadata":{"annotations":{},"labels":{"app":"reversewords-app"},"name":"reverse-words","namespace":"reverse-words-app"},"spec":{"port":{"targetPort":8080},"tls":{"insecureEdgeTerminationPolicy":"Redirect","termination":"edge"},"to":{"kind":"Service","name":"reverse-words","weight":100}}} | ||
openshift.io/host.generated: "true" | ||
labels: | ||
app: reversewords-app | ||
name: reverse-words | ||
spec: | ||
port: | ||
targetPort: 8080 | ||
tls: | ||
insecureEdgeTerminationPolicy: Redirect | ||
termination: edge | ||
to: | ||
kind: Service | ||
name: reverse-words | ||
weight: 100 | ||
wildcardPolicy: None |
19 changes: 19 additions & 0 deletions
19
kube-objects/Secret_reverse-words-app_reversewordsapp-dockercfg-j8mxt.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: v1 | ||
data: | ||
.dockercfg: e30= | ||
kind: Secret | ||
metadata: | ||
annotations: | ||
kubernetes.io/service-account.name: reversewordsapp | ||
kubernetes.io/service-account.uid: 1ae815e5-9085-49a2-bf32-29fbc2366914 | ||
openshift.io/token-secret.name: reversewordsapp-token-4w4pr | ||
openshift.io/token-secret.value: eyJhbGciOiJSUzI1NiIsImtpZCI6InlMcGhldXBCU3pyNHQyaEN5bDl6MXBueDN4RWtadk9nRDdCQU1WUHM1MXcifQ.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJyZXZlcnNlLXdvcmRzLWFwcCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUiOiJyZXZlcnNld29yZHNhcHAtdG9rZW4tNHc0cHIiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoicmV2ZXJzZXdvcmRzYXBwIiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZXJ2aWNlLWFjY291bnQudWlkIjoiMWFlODE1ZTUtOTA4NS00OWEyLWJmMzItMjlmYmMyMzY2OTE0Iiwic3ViIjoic3lzdGVtOnNlcnZpY2VhY2NvdW50OnJldmVyc2Utd29yZHMtYXBwOnJldmVyc2V3b3Jkc2FwcCJ9.KMtWj6xTiliKmHl2psE4ByCeoPo-V67jZ_2acdlyk8ZP1Mdg4iSJjXJL_mxs4zT-U-KYV6MpYn3I0YHKYLEUycHXt4g8Bujv_aGptYGmm_obH_eZpYqt5fT_qFNQx1vQY6JdfeJdqPUsOZdNGjtUvCAKaOD5TI_QxTX2FSXW754JFwymxFIY7JCWAzldu6AU8ypI81O2A2nTBBDkeOlYFlb3qqdHZLZqrW3sZfIbnbCw6n4US8RYyAYX30xRuUTn-yVMTOtUezGeUpMr4RUMzb6MEvMgC3SWZDYEGOPkOk8vdYCCjdIOipc4EKEz5KPuag06-cZIN37QxIoMoL3HR6caYZTi_cfj1HmdvqtOJcJAl7z2A5vtPHUy2H-eqPASWM05Yr5_YZLiJkn7jHkXjn4xRX0AOLte9HhT4VIkIHjBTOcjF-i0WpIGOCiVP2MqEIZBhFAuYXrIps8kOPfOof7HpHngqD1W9uy927gI3S6Nf2UHlq0eBeP_ZaYsOMcSZo97sF-IELoE12tArmvWmv2qa_B6aMWnX0tCC7bDfaWH-F1jO423n9cXalKSZHj-Bl69wuqoBND_GOKWSiNAvMChk9CAtJ1QxIdKFRkPF9M5T-c6DtAPmBQoCt6Foni8_lfuLjKuEI2ICM_ilrEwVy3CPKm7mHc-iU5bKeJ3UTQ | ||
name: reversewordsapp-dockercfg-j8mxt | ||
ownerReferences: | ||
- apiVersion: v1 | ||
blockOwnerDeletion: false | ||
controller: true | ||
kind: Secret | ||
name: reversewordsapp-token-4w4pr | ||
uid: 48a6516e-ff03-4194-9cd0-d1290934f07b | ||
type: kubernetes.io/dockercfg |
14 changes: 14 additions & 0 deletions
14
kube-objects/Secret_reverse-words-app_reversewordsapp-token-4w4pr.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
kube-objects/Secret_reverse-words-app_reversewordsapp-token-t24zp.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
kube-objects/ServiceAccount_reverse-words-app_reversewordsapp.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: v1 | ||
imagePullSecrets: | ||
- name: reversewordsapp-dockercfg-j8mxt | ||
kind: ServiceAccount | ||
metadata: | ||
annotations: | ||
kubectl.kubernetes.io/last-applied-configuration: | | ||
{"apiVersion":"v1","kind":"ServiceAccount","metadata":{"annotations":{},"labels":{"app":"reversewords-app"},"name":"reversewordsapp","namespace":"reverse-words-app"}} | ||
labels: | ||
app: reversewords-app | ||
name: reversewordsapp | ||
secrets: | ||
- name: reversewordsapp-token-t24zp | ||
- name: reversewordsapp-dockercfg-j8mxt |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
annotations: | ||
kubectl.kubernetes.io/last-applied-configuration: | | ||
{"apiVersion":"v1","kind":"Service","metadata":{"annotations":{},"labels":{"app":"reversewords-app"},"name":"reverse-words","namespace":"reverse-words-app"},"spec":{"ports":[{"name":"http","port":8080,"protocol":"TCP","targetPort":"http"}],"selector":{"app":"reversewords-app"},"type":"ClusterIP"}} | ||
labels: | ||
app: reversewords-app | ||
name: reverse-words | ||
spec: | ||
internalTrafficPolicy: Cluster | ||
ipFamilies: | ||
- IPv4 | ||
ipFamilyPolicy: SingleStack | ||
ports: | ||
- name: http | ||
port: 8080 | ||
protocol: TCP | ||
targetPort: http | ||
selector: | ||
app: reversewords-app | ||
sessionAffinity: None | ||
type: ClusterIP |