Skip to content

Instantly share code, notes, and snippets.

@jc1518
jc1518 / k8s_jira_configmap.yaml
Last active Nov 3, 2019
Jira configmap file on k8s
View k8s_jira_configmap.yaml
---
apiVersion: v1
kind: ConfigMap
metadata:
name: jira-config
labels:
app: jira
data:
JVM_MINIMUM_MEMORY: 2048m
JVM_MAXIMUM_MEMORY: 2048m
@jc1518
jc1518 / k8s_jira_sharedhome_pv.yaml
Created Nov 3, 2019
Jira shared home persistent volume config file on k8s
View k8s_jira_sharedhome_pv.yaml
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: jira-share-pvc
labels:
app: jira-share
spec:
accessModes:
- ReadWriteMany
@jc1518
jc1518 / k8s_jira_service.yaml
Created Nov 3, 2019
Jira service config file on k8s
View k8s_jira_service.yaml
---
apiVersion: v1
kind: Service
metadata:
name: jira
labels:
app: jira
spec:
type: NodePort
ports:
@jc1518
jc1518 / k8s_jira_postgres_configmap.yaml
Created Nov 3, 2019
Jira Postgres DB configmap config file on k8s
View k8s_jira_postgres_configmap.yaml
---
apiVersion: v1
kind: ConfigMap
metadata:
name: jira-postgres-config
labels:
app: jira-postgres
data:
POSTGRES_DB: jira
POSTGRES_USER: admin
@jc1518
jc1518 / k8s_jira_postgres_pv.yaml
Created Nov 3, 2019
Jira Postgres DB persistent volume config file on k8s
View k8s_jira_postgres_pv.yaml
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: jira-postgres-pvc
labels:
app: jira-postgres
spec:
accessModes:
- ReadWriteOnce
@jc1518
jc1518 / k8s_jira_postgres_deployment.yaml
Created Nov 3, 2019
Jira Postgres DB deployment config file on k8s
View k8s_jira_postgres_deployment.yaml
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: jira-postgres
labels:
app: jira-postgres
spec:
replicas: 1
selector:
@jc1518
jc1518 / k8s_jira_postgres_service.yaml
Created Nov 3, 2019
Jira Postgres DB service config file on k8s
View k8s_jira_postgres_service.yaml
---
apiVersion: v1
kind: Service
metadata:
name: jira-postgres
labels:
app: jira-postgres
spec:
type: ClusterIP
ports:
@jc1518
jc1518 / resize_pv_sample
Last active Nov 5, 2019
Resize persistent volume on k8s
View resize_pv_sample
$ kubectl describe sc glusterfs
Name: glusterfs
IsDefaultClass: Yes
Annotations: kubectl.kubernetes.io/last-applied-configuration={"allowVolumeExpansion":true,"apiVersion":"storage.k8s.io/v1","kind":"StorageClass","metadata":{"annotations":{},"name":"glusterfs"},"parameters":{"resturl":"http://xxx.xxx.xxx.xxx:8080","volumetype":"none"},"provisioner":"kubernetes.io/glusterfs"}
,storageclass.kubernetes.io/is-default-class=true
Provisioner: kubernetes.io/glusterfs
Parameters: resturl=http://xxx.xxx.xxx.xxx:8080,volumetype=none
AllowVolumeExpansion: True
MountOptions: <none>
ReclaimPolicy: Delete
@jc1518
jc1518 / traefik_ingress_sample.yaml
Created Nov 5, 2019
Ingress config file sample
View traefik_ingress_sample.yaml
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: sandbox
namespace: default
annotations:
kubernetes.io/ingress.class: traefik
spec:
rules:
@jc1518
jc1518 / k8s_jira_service_sticky_session.yaml
Created Nov 6, 2019
Jira service with stick sessions config file on k8s
View k8s_jira_service_sticky_session.yaml
---
apiVersion: v1
kind: Service
metadata:
name: jira
labels:
app: jira
annotations:
traefik.ingress.kubernetes.io/affinity: "true"
traefik.ingress.kubernetes.io/session-cookie-name: "sticky"