Created
November 16, 2021 20:59
-
-
Save artberger/5269ebda76f01ea19953f38c92db9ab6 to your computer and use it in GitHub Desktop.
test
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
# Sample YAML for an IBM WAS Liberty deployment. | |
# For more information, see ibm.biz/iks_yaml. | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: wasliberty | |
spec: | |
replicas: 3 | |
selector: | |
matchLabels: | |
app: wasliberty | |
template: | |
metadata: | |
labels: | |
app: wasliberty | |
spec: | |
affinity: | |
podAntiAffinity: | |
preferredDuringSchedulingIgnoredDuringExecution: | |
- weight: 100 | |
podAffinityTerm: | |
labelSelector: | |
matchExpressions: | |
- key: app | |
operator: In | |
values: | |
- wasliberty | |
topologyKey: kubernetes.io/hostname | |
containers: | |
- name: wasliberty | |
image: icr.io/ibm/liberty:latest | |
env: | |
- name: VERSION | |
valueFrom: | |
configMapKeyRef: | |
name: wasliberty | |
key: VERSION | |
- name: LANGUAGE | |
valueFrom: | |
configMapKeyRef: | |
name: wasliberty | |
key: LANGUAGE | |
- name: username | |
valueFrom: | |
secretKeyRef: | |
name: wasliberty | |
key: username | |
- name: password | |
valueFrom: | |
secretKeyRef: | |
name: wasliberty | |
key: password | |
ports: | |
- containerPort: 9080 | |
resources: | |
requests: | |
memory: "512Mi" | |
cpu: "500m" | |
limits: | |
memory: "1024Mi" | |
cpu: "1000m" | |
livenessProbe: | |
httpGet: | |
path: / | |
port: 9080 | |
initialDelaySeconds: 300 | |
periodSeconds: 15 | |
readinessProbe: | |
httpGet: | |
path: / | |
port: 9080 | |
initialDelaySeconds: 45 | |
periodSeconds: 5 | |
volumeMounts: | |
- name: pvmount | |
mountPath: /test | |
volumes: | |
- name: pvmount | |
persistentVolumeClaim: | |
claimName: wasliberty | |
--- | |
apiVersion: policy/v1beta1 | |
kind: PodDisruptionBudget | |
metadata: | |
name: wasliberty | |
spec: | |
maxUnavailable: 1 | |
selector: | |
matchLabels: | |
app: wasliberty | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: wasliberty | |
labels: | |
app: wasliberty | |
spec: | |
ports: | |
- port: 9080 | |
selector: | |
app: wasliberty | |
type: NodePort | |
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: wasliberty | |
labels: | |
app: wasliberty | |
data: | |
VERSION: "1.0" | |
LANGUAGE: en | |
--- | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: wasliberty | |
labels: | |
app: wasliberty | |
type: Opaque | |
data: | |
username: dXNlcm5hbWU= | |
password: cGFzc3dvcmQ= | |
--- | |
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: wasliberty | |
annotations: | |
volume.beta.kubernetes.io/storage-class: "ibmc-file-bronze" | |
labels: | |
billingType: "hourly" | |
app: wasliberty | |
spec: | |
accessModes: | |
- ReadWriteMany | |
resources: | |
requests: | |
storage: 24Gi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment