7989529419
Since kuryr-kubernetes has been retired, drop the images and use nginx instead. Change-Id: Ia533a85266571eda2951cd1e8e586d0f2b67bf48
119 lines
2.9 KiB
YAML
119 lines
2.9 KiB
YAML
apiVersion: v1
|
|
kind: PodTemplate
|
|
metadata:
|
|
name: curry-test001
|
|
namespace: curryns
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: webserver
|
|
scaling_name: SP1
|
|
spec:
|
|
containers:
|
|
- env:
|
|
- name: param0
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: param0
|
|
name: curry-test001
|
|
- name: param1
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: param1
|
|
name: curry-test001
|
|
image: nginx
|
|
imagePullPolicy: IfNotPresent
|
|
name: web-server
|
|
ports:
|
|
- containerPort: 8080
|
|
resources:
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512M
|
|
requests:
|
|
cpu: 500m
|
|
memory: 512M
|
|
volumeMounts:
|
|
- name: curry-claim-volume
|
|
mountPath: /data
|
|
volumes:
|
|
- name: curry-claim-volume
|
|
persistentVolumeClaim:
|
|
claimName: curry-pv-claim
|
|
azureFile:
|
|
secretName: azure-secret
|
|
shareName: aksshare
|
|
readOnly: false
|
|
cephfs:
|
|
monitors:
|
|
- 10.16.154.78:6789
|
|
cinder:
|
|
volumeID: "90d6900d-808f-4ddb-a30e-5ef821f58b4e"
|
|
fsType: ext4
|
|
configMap:
|
|
name: log-config
|
|
items:
|
|
- key: log_level
|
|
path: log_level
|
|
csi:
|
|
driver: csi-nfsplugin
|
|
volume_handle: data-id
|
|
downwardAPI:
|
|
items:
|
|
- path: "labels"
|
|
fieldRef:
|
|
fieldPath: metadata.labels
|
|
resourceFieldRef:
|
|
resource: limits.cpu
|
|
flexVolume:
|
|
driver: "kubernetes.io/lvm"
|
|
fsType: "ext4"
|
|
glusterfs:
|
|
endpoints: glusterfs-cluster
|
|
path: kube_vol
|
|
readOnly: true
|
|
gcePersistentDisk:
|
|
pdName: my-data-disk
|
|
fsType: ext4
|
|
gitRepo:
|
|
repository: "git@somewhere:me/my-git-repository.git"
|
|
revision: "22f1d8406d464b0c0874075539c1f2e96c253775"
|
|
hostPath:
|
|
path: /var/local/aaa
|
|
type: DirectoryOrCreate
|
|
iscsi:
|
|
targetPortal: 10.0.2.15:3260
|
|
iqn: iqn.2001-04.com.example:storage.kube.sys1.xyz
|
|
lun: 0
|
|
nfs:
|
|
server: nfs-server.default.svc.cluster.local
|
|
path: "/"
|
|
photonPersistentDisk:
|
|
pdId: 'test'
|
|
portworxVolume:
|
|
volumeID: "pxvol"
|
|
projected:
|
|
sources:
|
|
- secret:
|
|
name: mysecret
|
|
items:
|
|
- key: username
|
|
path: my-group/my-username
|
|
serviceAccountToken:
|
|
path: 'test'
|
|
quobyte:
|
|
registry: 'test'
|
|
volume: 'test'
|
|
rbd:
|
|
monitors:
|
|
- '10.16.154.78:6789'
|
|
image: foo
|
|
scaleIO:
|
|
gateway: https://localhost:443/api
|
|
system: scaleio
|
|
secretRef:
|
|
name: sio-secret
|
|
vsphereVolume:
|
|
volumePath: "[DatastoreName] volumes/myDisk"
|
|
fsType: ext4
|
|
terminationGracePeriodSeconds: 0 |