apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: sts-pod-fixip
spec:
  serviceName: sts-pod-fixip
  selector:
    matchLabels:
      app: nginx
  replicas: 1
  template:
    metadata:
      labels:
        app: nginx
        pod-ip: fixed-ip
    spec:
      containers:
        - name: nginx
          image: nginx